init1 () {
var that =this
if( that.polygon ) {
that.map.remove(that.polygon)
}
AMap.plugin('AMap.DistrictSearch', function () {
new AMap.DistrictSearch({
extensions: 'all',
level: 'province',
subdistrict: 0
}).search("河北", function(status, result) {// 外多边形坐标数组和内多边形坐标数组
var outer = [
new AMap.LngLat(-360, 90, true),
new AMap.LngLat(-360, -90, true),
new AMap.LngLat(360, -90, true),
new AMap.LngLat(360
高德地图绘制河北区域,其它区域不显示
最新推荐文章于 2024-04-29 04:31:29 发布