From b60b4e5140a417ee63ccfd9ddd8912cb013f9b7f Mon Sep 17 00:00:00 2001
From: yangdelong <828900aaa>
Date: 星期一, 17 五月 2021 20:50:15 +0800
Subject: [PATCH] 修改wms最大显示级别为21级

---
 src/components/LayerController/service/WmsLayerService.js      |    1 +
 src/components/LayerController/service/WmsLayerGroupService.js |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/components/LayerController/service/WmsLayerGroupService.js b/src/components/LayerController/service/WmsLayerGroupService.js
index 6f948d5..0955ffe 100644
--- a/src/components/LayerController/service/WmsLayerGroupService.js
+++ b/src/components/LayerController/service/WmsLayerGroupService.js
@@ -22,6 +22,7 @@
       this.L.tileLayer.wms(PIPELINE_WMS, {
         format: 'image/png', // 杩斿洖鐨勬暟鎹牸寮�
         transparent: true,
+        maxZoom: 21,
         layers: k // todo
       }).addTo(this.layer).bringToFront()
     }
diff --git a/src/components/LayerController/service/WmsLayerService.js b/src/components/LayerController/service/WmsLayerService.js
index 4706862..df7c090 100644
--- a/src/components/LayerController/service/WmsLayerService.js
+++ b/src/components/LayerController/service/WmsLayerService.js
@@ -19,6 +19,7 @@
       INFO_FORMAT: 'application/json',
       TRANSPARENT: true,
       FEATURE_COUNT: 50,
+      maxZoom: 21,
       SRS: 'EPSG:4326',
       EXCEPTIONS: 'application/vnd.ogc.se_inimage'
     }

--
Gitblit v1.8.0