定位中心点

This commit is contained in:
shijingjing
2022-11-09 11:45:26 +08:00
parent c48d86ee42
commit b20b9bd30c

View File

@@ -218,6 +218,7 @@ export default {
this.map = new AMap.Map('map', {
resizeEnable: true,
zooms: [6, 20],
center:[104.067923463,30.6799428454],
zoom: 11,
})
this.placeSearch = new AMap.PlaceSearch({ map: this.map })
@@ -276,7 +277,7 @@ export default {
zooms: [6, 20],
zoom: 11,
})
var marker = new AMap.Marker({
let marker = new AMap.Marker({
position: new AMap.LngLat(lng,lat),
title: address
})