Commit 4cb3f93c authored by 陈珊's avatar 陈珊

123

parent ee0d522c
......@@ -133,7 +133,7 @@ var map = {
level: 'province'
};
var district = new AMap.DistrictSearch(options);
district.search('浙江省', function (status, result) {
district.search($("#province").html(), function (status, result) {
var bounds = result.districtList[0]['boundaries'];
var mask = [];
for (var i = 0; i < bounds.length; i++) {
......@@ -162,8 +162,8 @@ var map = {
}
//行政区查询
district.setLevel('district')
// district.search($("#area").html(), function(status, result) {
district.search('杭州市', function (status, result) {
district.search($("#area").html(), function(status, result) {
// district.search('杭州市', function (status, result) {
map.remove(polygons)//清除上次结果
polygons = [];
var bounds = result.districtList[0].boundaries;
......
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 to comment