Commit 56e51ef2 by hanjixin

优化特别行政区显示

parent a151e148
......@@ -69,6 +69,10 @@ function bounds2Path(bounds) {
}
function findsubarea(res) {
let childrensDistrictList = res.districtList[0].districtList;
if(childrensDistrictList.length ===1) {
console.log(1)
childrensDistrictList = res.districtList[0].districtList[0].districtList
}
for (let index = 0; index < childrensDistrictList.length; index++) {
let adcode = childrensDistrictList[index].adcode;
district.search(adcode, function (status, result) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment