|
@ -46,8 +46,8 @@ export default { |
|
|
this.aMapIns = new this.AMap.Map(this.$refs.mapContainerRef, { |
|
|
this.aMapIns = new this.AMap.Map(this.$refs.mapContainerRef, { |
|
|
resizeEnable: true, //是否监控地图容器尺寸变化 |
|
|
resizeEnable: true, //是否监控地图容器尺寸变化 |
|
|
mapStyle: "amap://styles/blue", |
|
|
mapStyle: "amap://styles/blue", |
|
|
zoom: 7, |
|
|
zoom: 9.5, |
|
|
center: [116.629514, 35.794168], |
|
|
center: [116.629514, 35.805288], |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
this.aMapIns.on("complete", () => { |
|
|
this.aMapIns.on("complete", () => { |
|
@ -198,7 +198,8 @@ export default { |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
unmounted() { |
|
|
// unmounted() { |
|
|
|
|
|
destroyed(){ |
|
|
if (!this.aMapIns) return; |
|
|
if (!this.aMapIns) return; |
|
|
this.aMapIns.destroyed(); |
|
|
this.aMapIns.destroyed(); |
|
|
}, |
|
|
}, |
|
|