liujq 3 年之前
父節點
當前提交
fd3a08039d
共有 2 個文件被更改,包括 9 次插入8 次删除
  1. 2 2
      src/main.js
  2. 7 6
      src/views/map/dtl.vue

+ 2 - 2
src/main.js

@@ -48,10 +48,10 @@ import VueAMap from 'vue-amap' // 高德
 Vue.use(VueAMap)
 VueAMap.initAMapApiLoader({
   key: '8343df94cab859af3bd36362029a4e19',
-  plugin: ['AMap.MouseTool', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PlaceSearch', 'AMap.Geolocation', 'AMap.Geocoder', 'AMap.TileLayer'],
+  plugin: ['AMap.MouseTool'],
+  // plugin: ['AMap.AutoComplete','AMap.MarkerClusterer','AMap.DistrictSearch', 'AMap.MouseTool', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PlaceSearch', 'AMap.Geolocation', 'AMap.Geocoder', 'AMap.TileLayer'],
   v: '1.4.15',
   uiVersion: '1.0' })
-
 /**
  * If you don't want to use mock-server
  * you want to use MockJs for mock api

+ 7 - 6
src/views/map/dtl.vue

@@ -60,13 +60,12 @@
       :amap-manager="amapManager"
       :zoom="mapDiyObj.zoom"
       :zooms="mapDiyObj.zooms"
-      
-    >
-    <!-- :mapStyle="mapDiyObj.mapStyle"
+      :mapStyle="mapDiyObj.mapStyle"
       :center="mapDiyObj.center"
       :events="mapEvents"
-      :plugin="plugin" -->
-      <!-- <template v-if="mapDiyObj.zoom > 13">
+      :plugin="plugin"
+    >
+      <template v-if="mapDiyObj.zoom > 13">
         <template v-if="mapDiyObj.isSchoolShow === '1'">
           <el-amap-marker class="scoped-m-box" v-for="(marker, index) in schoolList" :key="3000 + index"
             icon="https://img2.honglounews.com/20220110041435-6276.png"
@@ -89,6 +88,8 @@
             :label="{content: marker.estate_name, offset: [-10 * marker.estate_name.length / 2, -20]}"
             :extData="{id: marker.id}"
           >
+          <!-- https://img2.honglounews.com/20220110041534-8330.png -->
+          <!-- https://img2.honglounews.com/20220110041411-6675.png -->
           </el-amap-marker>
         </template>
         <el-amap-marker v-for="(marker, index) in markerData" :key="9000 + index"
@@ -130,7 +131,7 @@
         :strokeOpacity="polygon.strokeOpacity"
         :extData="{index}"
         :events="polygonEvents">
-      </el-amap-polygon> -->
+      </el-amap-polygon>
     </el-amap>
     <MapTextEdit
       :isShow="isMteShow"