This commit is contained in:
shijingjing
2022-11-03 15:27:56 +08:00
parent 7e00aa30a9
commit 07ce838056

View File

@@ -268,11 +268,17 @@ export default {
},
getMap(lng,lat,address) {
AMapLoader.load({
key: '54a02a43d9828a8f9cd4f26fe281e74e',
version: '2.0',
plugins: ['AMap.PlaceSearch', 'AMap.AutoComplete', 'AMap.Geocoder'],
}).then((AMap) => {
this.mapDetail = new AMap.Map(document.getElementById("mapDetail"), {
resizeEnable: true,
zooms: [6, 20],
zoom: 11,
})
})
var marker = new AMap.Marker({
position: new AMap.LngLat(lng,lat),
title: address