Quellcode durchsuchen

黄浦江中下游图层加载

zoro vor 1 Jahr
Ursprung
Commit
ba0f84c61e
2 geänderte Dateien mit 109 neuen und 1 gelöschten Zeilen
  1. 7 1
      src/config/layerConfig.js
  2. 102 0
      src/utils/map/Layer.js

+ 7 - 1
src/config/layerConfig.js

@@ -34,5 +34,11 @@ module.exports = {
     dm2022H1Layer:'https://ghjg.china-gis.com/server/rest/services/Hosted/断面_2022H1/SceneServer',
     dm2022H2Layer:'https://ghjg.china-gis.com/server/rest/services/Hosted/断面_2022H2/SceneServer',
     dm2023H1Layer:'https://ghjg.china-gis.com/server/rest/services/Hosted/断面_2023H1/SceneServer',
-    dm2023H2Layer:'https://ghjg.china-gis.com/server/rest/services/Hosted/断面_2023H2/SceneServer'
+    dm2023H2Layer:'https://ghjg.china-gis.com/server/rest/services/Hosted/断面_2023H2/SceneServer',
+    dmUp2023Layer:'https://ghjg.china-gis.com/server/rest/services/Hosted/断面_up_2023/SceneServer',
+    dmUp2022Layer:'https://ghjg.china-gis.com/server/rest/services/Hosted/断面_up_2022/SceneServer',
+    dmUp2021Layer:'https://ghjg.china-gis.com/server/rest/services/Hosted/断面_up_2021/SceneServer',
+    hpjUp2023Layer:'https://ghjg.china-gis.com/server/rest/services/Hosted/hpj_up_2023/SceneServer',
+    hpjUp2022Layer:'https://ghjg.china-gis.com/server/rest/services/Hosted/hpj_up_2022/SceneServer',
+    hpjUp2021Layer:'https://ghjg.china-gis.com/server/rest/services/Hosted/hpj_up_2021/SceneServer',
 }

+ 102 - 0
src/utils/map/Layer.js

@@ -269,6 +269,15 @@ export function addLayerByName(name,isShow,opacity){
                 token: '',
                 is_goto: true
             })
+            addLayer({
+                id: 'waterDepthPointHpj2023UpLayer',
+                title: 'waterDepthPointHpj2023UpLayer',
+                type: 'scene',
+                url: layerConfig.hpjUp2023Layer,
+                visible: isShow,
+                opacity: opacity?opacity:1,
+                token: ''
+            })
             break
         case '2023.2':
             addLayer({
@@ -281,6 +290,15 @@ export function addLayerByName(name,isShow,opacity){
                 token: '',
                 is_goto: true
             })
+            addLayer({
+                id: 'waterDepthPointHpj2023UpLayer',
+                title: 'waterDepthPointHpj2023UpLayer',
+                type: 'scene',
+                url: layerConfig.hpjUp2023Layer,
+                visible: isShow,
+                opacity: opacity?opacity:1,
+                token: ''
+            })
             break
         case '2022.1':
             addLayer({
@@ -293,6 +311,15 @@ export function addLayerByName(name,isShow,opacity){
                 token: '',
                 is_goto: false
             })
+            addLayer({
+                id: 'waterDepthPointHpj2022UpLayer',
+                title:'waterDepthPointHpj2022UpLayer',
+                type: 'scene',
+                url: layerConfig.hpjUp2022Layer,
+                visible: isShow,
+                opacity: opacity?opacity:1,
+                token: ''
+            })
             break
         case '2022.2':
             addLayer({
@@ -305,6 +332,15 @@ export function addLayerByName(name,isShow,opacity){
                 token: '',
                 is_goto: false
             })
+            addLayer({
+                id: 'waterDepthPointHpj2022UpLayer',
+                title:'waterDepthPointHpj2022UpLayer',
+                type: 'scene',
+                url: layerConfig.hpjUp2022Layer,
+                visible: isShow,
+                opacity: opacity?opacity:1,
+                token: ''
+            })
             break
         case '2021.1':
             addLayer({
@@ -317,6 +353,16 @@ export function addLayerByName(name,isShow,opacity){
                 token: '',
                 is_goto: false
             })
+
+            addLayer({
+                id: 'waterDepthPointHpj2021UpLayer',
+                title:'waterDepthPointHpj2021UpLayer',
+                type: 'scene',
+                url: layerConfig.hpjUp2021Layer,
+                visible: isShow,
+                opacity: opacity?opacity:1,
+                token: ''
+            })
             break
         case '2021.2':
             addLayer({
@@ -329,6 +375,16 @@ export function addLayerByName(name,isShow,opacity){
                 token: '',
                 is_goto: false
             })
+
+            addLayer({
+                id: 'waterDepthPointHpj2021UpLayer',
+                title:'waterDepthPointHpj2021UpLayer',
+                type: 'scene',
+                url: layerConfig.hpjUp2021Layer,
+                visible: isShow,
+                opacity: opacity?opacity:1,
+                token: ''
+            })
             break
         case '2020.1':
             addLayer({
@@ -555,6 +611,15 @@ export function addLayerByName(name,isShow,opacity){
                 opacity: opacity?opacity:1,
                 token: ''
             })
+            addLayer({
+                id: 'waterDepthPointDm2021UpLayer',
+                title:'waterDepthPointDm2021UpLayer',
+                type: 'scene',
+                url: layerConfig.dmUp2021Layer,
+                visible: isShow,
+                opacity: opacity?opacity:1,
+                token: ''
+            })
 
             var data = {'distance': 100, 'year': 2021.1}
             if(isShow){
@@ -576,6 +641,15 @@ export function addLayerByName(name,isShow,opacity){
                 opacity: opacity?opacity:1,
                 token: ''
             })
+            addLayer({
+                id: 'waterDepthPointDm2021UpLayer',
+                title:'waterDepthPointDm2021UpLayer',
+                type: 'scene',
+                url: layerConfig.dmUp2021Layer,
+                visible: isShow,
+                opacity: opacity?opacity:1,
+                token: ''
+            })
 
             var data = {'distance': 100, 'year': 2021.2}
             if(isShow){
@@ -598,6 +672,16 @@ export function addLayerByName(name,isShow,opacity){
                 token: ''
             })
 
+            addLayer({
+                id: 'waterDepthPointDm2022UpLayer',
+                title:'waterDepthPointDm2022UpLayer',
+                type: 'scene',
+                url: layerConfig.dmUp2022Layer,
+                visible: isShow,
+                opacity: opacity?opacity:1,
+                token: ''
+            })
+
             var data = {'distance': 100, 'year': 2022.1}
             if(isShow){
                 if(getMapScale() <= 5000) {
@@ -618,6 +702,15 @@ export function addLayerByName(name,isShow,opacity){
                 opacity: opacity?opacity:1,
                 token: ''
             })
+            addLayer({
+                id: 'waterDepthPointDm2022UpLayer',
+                title:'waterDepthPointDm2022UpLayer',
+                type: 'scene',
+                url: layerConfig.dmUp2022Layer,
+                visible: isShow,
+                opacity: opacity?opacity:1,
+                token: ''
+            })
 
             var data = {'distance': 100, 'year': 2022.2}
             if(isShow){
@@ -660,6 +753,15 @@ export function addLayerByName(name,isShow,opacity){
                 opacity: opacity?opacity:1,
                 token: ''
             })
+            addLayer({
+                id: 'waterDepthPointDm2023UpLayer',
+                title:'waterDepthPointDm2023UpLayer',
+                type: 'scene',
+                url: layerConfig.dmUp2023Layer,
+                visible: isShow,
+                opacity: opacity?opacity:1,
+                token: ''
+            })
 
             var data = {'distance': 100, 'year': 2023.2}
             if(isShow){