From d9b89e0520d29ffdf1775b4f2d87fc45db2b0bf5 Mon Sep 17 00:00:00 2001 From: zhangshuaibao <15731629597@163.com> Date: 星期三, 17 三月 2021 11:38:06 +0800 Subject: [PATCH] 修改 --- src/conf/TDT.js | 43 +++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 41 insertions(+), 2 deletions(-) diff --git a/src/conf/TDT.js b/src/conf/TDT.js index 1c5ad9e..12b285a 100644 --- a/src/conf/TDT.js +++ b/src/conf/TDT.js @@ -4,7 +4,7 @@ const TIANDITU_GIS_TOKEN = '5d76218063082952d18b76da5005f490' // 澶囩敤tk: f1b72b5e7cb1175acddfa485f1bc9770 const intranet = [ { - code: 'sinopec_img', + code: 'tianditu_img', name: '涓煶鍖栧ぉ鍦板浘褰卞儚', icon_actived: '/assets/images/map-pages/icon/img.png', icon_deactived: '/assets/images/map-pages/icon/img.png', @@ -40,7 +40,7 @@ } }, { - code: 'sinopec_vec', + code: 'tianditu_vec', name: '涓煶鍖栧ぉ鍦板浘鐭㈤噺', icon_actived: '/assets/images/map-pages/icon/road.png', icon_deactived: '/assets/images/map-pages/icon/road.png', @@ -153,6 +153,45 @@ zoomOffset: 1 } } + }, + { + code: 'tianditu_ter', + name: '澶╁湴鍥惧湴褰�', + icon_actived: '/assets/images/map-pages/icon/terrain.png', + icon_deactived: '/assets/images/map-pages/icon/terrain.png', + isAddToMap: false, + annotationCheck: true, + map: { + layerName: '澶╁湴鍥惧湴褰㈠湴鍥�', + type: 'wmts', + visible: false, + layerType: 'ter_c', + isLoadMapByToken: true, + annotationCheck: true, + url: TIANDITU_GIS_HOST + '/ter_c/wmts?layer=ter&style=default&tilematrixset=c' + + '&Service=WMTS&Request=GetTile&Version=1.0.0&Format=tiles&TileMatrix={z}&TileCol={x}&TileRow={y}' + + '&tk=' + TIANDITU_GIS_TOKEN, + option: { + maxZoom: 18, + minZoom: 1, + zoomOffset: 1 + } + }, + annotation: { + layerName: '澶╁湴鍥惧湴褰㈡爣璁�', + type: 'wmts', + visible: false, + layerType: 'cta_c', + isLoadMapByToken: true, + url: TIANDITU_GIS_HOST + '/cta_c/wmts?layer=cta&style=default&tilematrixset=c' + + '&Service=WMTS&Request=GetTile&Version=1.0.0&Format=tiles&TileMatrix={z}&TileCol={x}&TileRow={y}' + + '&tk=' + TIANDITU_GIS_TOKEN, + option: { + maxZoom: 18, + minZoom: 1, + zoomOffset: 1 + } + } } ] export default -- Gitblit v1.8.0