From e8bcc8ff69702b8c2ba123981a45e668cf95a01b Mon Sep 17 00:00:00 2001 From: wangrui <zephyrs0894@163.com> Date: 星期五, 25 十二月 2020 16:17:35 +0800 Subject: [PATCH] 图层控制 --- src/conf/MapConfig.js | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/conf/MapConfig.js b/src/conf/MapConfig.js index f7f7c82..7611aec 100644 --- a/src/conf/MapConfig.js +++ b/src/conf/MapConfig.js @@ -206,7 +206,8 @@ icon_deactived: '', type:'wmts', url: APP_GIS_HOST + '/server/ogcserver/whp_guojie/wmts?x={x}&y={y}&z={z}', - inLegend: false, + inLegend: true, + checked: true, option:{ zoomOffset: 1 } @@ -219,6 +220,7 @@ type:'wms', url: APP_GIS_HOST_PIPELINE + '/server/ogcserver/PipeLine/wms?version=1.1.1', inLegend: true, + checked: true, option:{ layers:'all', styles:'', // Comma-separated list of WMS styles. @@ -304,6 +306,7 @@ { code:'fsss', name:'闄勫睘璁炬柦', + checked: true, // 榛樿閫変腑鐘舵�� filters:[ { code:'鍥涢��', @@ -366,6 +369,7 @@ { code:'hbss', name:'鐜繚璁炬柦', + checked: true, // 榛樿閫変腑鐘舵�� filters:[ { code:'绐ㄤ簳', @@ -421,6 +425,7 @@ { code:'pk', name:'鎺掑彛', + checked: true, // 榛樿閫変腑鐘舵�� filters:[ { code:'鎺掓斁鍙�', @@ -434,6 +439,7 @@ { code:'qyxx', name:'鍖哄煙淇℃伅', + checked: true, // 榛樿閫変腑鐘舵�� filters:[ { code:'绗笁鏂圭閬�', -- Gitblit v1.8.0