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 |   46 +++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 45 insertions(+), 1 deletions(-)

diff --git a/src/conf/TDT.js b/src/conf/TDT.js
index 12b285a..5a02c16 100644
--- a/src/conf/TDT.js
+++ b/src/conf/TDT.js
@@ -1,7 +1,15 @@
 // 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: 'tianditu_img',
@@ -74,6 +82,42 @@
         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,
+        zoomOffset: 1
+      }
+    }
   }
 ]
 const internet = [

--
Gitblit v1.8.0