From f7b244103e748e051537cf4b46e875acaf56c450 Mon Sep 17 00:00:00 2001 From: 徐旺旺 <11530253@qq.com> Date: 星期三, 19 五月 2021 16:03:22 +0800 Subject: [PATCH] 重封装定位js --- 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