|
|
@@ -581,11 +581,12 @@ const setMarker = () => {
|
|
|
// };
|
|
|
const initMap = async () => {
|
|
|
window._AMapSecurityConfig = {
|
|
|
- securityJsCode: "2d0885f937e5fa6d093830e1765f593d",
|
|
|
+ // securityJsCode: "2d0885f937e5fa6d093830e1765f593d",
|
|
|
+ securityJsCode: "afcfe7885b42abca17865b2ce30c8421", //玉琦账号
|
|
|
};
|
|
|
const _AMap = await AMapLoader.load({
|
|
|
- // key: "655ac083de961ed970f2be4ba23b3c9f", //玉骑账号
|
|
|
- key: "b19c9847b3775cd993c5a8a71c5fa1a0",
|
|
|
+ key: "655ac083de961ed970f2be4ba23b3c9f", //玉琦账号
|
|
|
+ // key: "b19c9847b3775cd993c5a8a71c5fa1a0",
|
|
|
version: "2.0",
|
|
|
plugins: ["AMap.MoveAnimation", "AMap.ImageLayer", "AMap.TileLayer", "AMap.Geolocation", "AMap.DistrictSearch", "AMap.Driving", "AMap.Walking", "AMap.MarkerCluster", "AMap.InfoWindow"],
|
|
|
});
|
|
|
@@ -608,7 +609,8 @@ const initMap = async () => {
|
|
|
});
|
|
|
map = new AMap.Map("amap", {
|
|
|
viewMode: "2D",
|
|
|
- mapStyle: "amap://styles/76c9ffde986e653b6c8dc2bba6a9186e", //设置地图的显示样式
|
|
|
+ // mapStyle: "amap://styles/76c9ffde986e653b6c8dc2bba6a9186e", //设置地图的显示样式
|
|
|
+ mapStyle: "amap://styles/d7b651796461dc85f1efa3c1397f61e8", //玉琦账号
|
|
|
labels: true,
|
|
|
zoom: 10, // 地图显示的缩放级别
|
|
|
zooms: [8, 18],
|