地图中心点
This commit is contained in:
@@ -308,7 +308,7 @@
|
|||||||
this.map = new AMap.Map('map', {
|
this.map = new AMap.Map('map', {
|
||||||
resizeEnable: true,
|
resizeEnable: true,
|
||||||
zooms: [6, 20],
|
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,
|
zoom: 11,
|
||||||
})
|
})
|
||||||
this.placeSearch = new AMap.PlaceSearch({ map: this.map })
|
this.placeSearch = new AMap.PlaceSearch({ map: this.map })
|
||||||
|
|||||||
Reference in New Issue
Block a user