From ec4d5c1827487f4c901b69bd9eae58e111e82b32 Mon Sep 17 00:00:00 2001
From: 徐旺旺 <11530253@qq.com>
Date: 星期四, 20 五月 2021 18:05:25 +0800
Subject: [PATCH] Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop
---
src/conf/TDT.js | 89 +++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 86 insertions(+), 3 deletions(-)
diff --git a/src/conf/TDT.js b/src/conf/TDT.js
index 1c5ad9e..5a02c16 100644
--- a/src/conf/TDT.js
+++ b/src/conf/TDT.js
@@ -1,10 +1,18 @@
// basemap涓绘満閰嶇疆
+
const SINOPEC_GIS_HOST = 'http://10.246.132.249:8080' // 鍐呯綉澶╁湴鍥句富鏈哄湴鍧�
const TIANDITU_GIS_HOST = 'http://t0.tianditu.gov.cn' // 鍏綉澶╁湴鍥句富鏈哄湴鍧�
-const TIANDITU_GIS_TOKEN = '5d76218063082952d18b76da5005f490' // 澶囩敤tk: f1b72b5e7cb1175acddfa485f1bc9770
+
+const mapTokenArray = ['5d76218063082952d18b76da5005f490',
+ 'f1b72b5e7cb1175acddfa485f1bc9770',
+ 'ac8bbce8119b337d75d4b06696f6186d',
+ '9bf834ce1ba3ba01c568147e9bfcab7c']
+
+const TIANDITU_GIS_TOKEN = mapTokenArray[Math.floor(Math.random() * mapTokenArray.length)] // 澶囩敤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 +48,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',
@@ -68,6 +76,42 @@
isLoadMapByToken: true,
url: SINOPEC_GIS_HOST + '/OneMapServer/rest/services/base-tdt-label-vector/WMTS?' +
'layer=cva&style=default&tilematrixset=c&Service=WMTS&Request=GetTile&Version=1.0.0&Format=tiles&TileMatrix={z}&TileCol={x}&TileRow={y}',
+ option: {
+ maxZoom: 18,
+ minZoom: 1,
+ 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,
+ url: SINOPEC_GIS_HOST + '/OneMapServer/rest/services/base-tdt-ter-globe/WMTS?' +
+ 'layer=vec&style=default&tilematrixset=c&Service=WMTS&Request=GetTile&Version=1.0.0&Format=tiles&TileMatrix={z}&TileCol={x}&TileRow={y}',
+ option: {
+ maxZoom: 18,
+ minZoom: 1,
+ zoomOffset: 1
+ }
+ },
+ annotation: {
+ layerName: '澶╁湴鍥惧湴褰㈡敞璁�',
+ type: 'wmts',
+ visible: false,
+ layerType: 'cta_c',
+ isLoadMapByToken: true,
+ url: SINOPEC_GIS_HOST + '/OneMapServer/rest/services/base-tdt-label-ter/WMTS?' +
+ 'layer=cva&style=default&tilematrixset=c&Service=WMTS&Request=GetTile&Version=1.0.0&Format=tiles&TileMatrix={z}&TileCol={x}&TileRow={y}',
option: {
maxZoom: 18,
minZoom: 1,
@@ -153,6 +197,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