Browse Source

地图部分功能隐藏

SunZehao 7 months ago
parent
commit
1c09e16542
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/mapAnalysis/index.vue

+ 3 - 3
src/views/mapAnalysis/index.vue

@@ -33,11 +33,11 @@ export default {
     initMap() {
       let map = L.map('map', {
         center: [40.02404009136253, 116.50641060224784], // 地图中心--北京
-        zoom: 16 //缩放比列
+        zoom: 16, //缩放比列
         // drawControl: true
-        // zoomControl: false, //禁用 + - 按钮
+        zoomControl: false, //禁用 + - 按钮
         // doubleClickZoom: true, // 禁用双击放大
-        // attributionControl: false, // 移除右下角leaflet标识
+        attributionControl: false // 移除右下角leaflet标识
         // preferCanvas: true
       })
       let name = L.tileLayer(