地图中心点

This commit is contained in:
liuye
2023-10-27 15:19:30 +08:00
parent 059df5fddf
commit 667e2af2df

View File

@@ -308,7 +308,7 @@
this.map = new AMap.Map('map', {
resizeEnable: true,
zooms: [6, 20],
center: this.form.lng ? [this.form.lng, this.form.lat] : [this.lng, this.lat],
center: this.form.lng ? [this.form.lng, this.form.lat] : undefined,
zoom: 11,
})
this.placeSearch = new AMap.PlaceSearch({ map: this.map })