From 31b82eeccef9f1e90f210e2f0b78304e7c3083d2 Mon Sep 17 00:00:00 2001 From: yangdelong <828900aaa> Date: 星期三, 19 五月 2021 14:38:37 +0800 Subject: [PATCH] 修改wms最大显示级别为21级 --- src/components/LayerController/service/WmsLayerService.js | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/components/LayerController/service/WmsLayerService.js b/src/components/LayerController/service/WmsLayerService.js index 4706862..b64e539 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' } @@ -64,6 +65,7 @@ const params = { format: 'image/png', // 杩斿洖鐨勬暟鎹牸寮� transparent: true, + maxZoom: 21, BBOX: this.map.getBounds().toBBoxString() } if (layers) { -- Gitblit v1.8.0