定位中心点
This commit is contained in:
@@ -218,6 +218,7 @@ export default {
|
|||||||
this.map = new AMap.Map('map', {
|
this.map = new AMap.Map('map', {
|
||||||
resizeEnable: true,
|
resizeEnable: true,
|
||||||
zooms: [6, 20],
|
zooms: [6, 20],
|
||||||
|
center:[104.067923463,30.6799428454],
|
||||||
zoom: 11,
|
zoom: 11,
|
||||||
})
|
})
|
||||||
this.placeSearch = new AMap.PlaceSearch({ map: this.map })
|
this.placeSearch = new AMap.PlaceSearch({ map: this.map })
|
||||||
@@ -276,7 +277,7 @@ export default {
|
|||||||
zooms: [6, 20],
|
zooms: [6, 20],
|
||||||
zoom: 11,
|
zoom: 11,
|
||||||
})
|
})
|
||||||
var marker = new AMap.Marker({
|
let marker = new AMap.Marker({
|
||||||
position: new AMap.LngLat(lng,lat),
|
position: new AMap.LngLat(lng,lat),
|
||||||
title: address
|
title: address
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user