地图
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user