Pārlūkot izejas kodu

更新 隐藏船舶icons;默认地图缩放级别及中心点

wzh 4 gadi atpakaļ
vecāks
revīzija
36b2f67c32
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      src/views/voyage/voyageDetail.vue

+ 3 - 2
src/views/voyage/voyageDetail.vue

@@ -570,8 +570,8 @@ export default {
     }
     function initMap() {
       map.value = new AMap.Map("map-container", {
-        zoom: 16, //级别
-        center: [121.524761, 31.228721], //中心点坐标
+        zoom: 11, //级别
+        center: [120.563757, 31.891174], //中心点坐标
         mapStyle: "amap://styles/f48d96805f5fa7f5aada657c5ee37017",
       });
       let toolBar = new AMap.ToolBar({
@@ -585,6 +585,7 @@ export default {
       });
       map.value.addControl(toolBar);
       map.value.addControl(hawkEye);
+      return;
       let markers = [];
       for (let i of medias.value) {
         let content = `<div style='width:160px'>