Forráskód Böngészése

维护水深暂存

sbj 1 éve
szülő
commit
99b9a553c2
3 módosított fájl, 51 hozzáadás és 13 törlés
  1. 33 1
      src/utils/map/Channel.js
  2. 11 11
      src/utils/map/Layer.js
  3. 7 1
      src/views/map/Index.vue

+ 33 - 1
src/utils/map/Channel.js

@@ -4,7 +4,7 @@
 
 import {addLayerByName} from '@/utils/map/Layer'
 import {setCenter} from '@/utils/map/Common'
-import {setCamera,setOpacity} from '@/utils/map/ArcgisUtil'
+import {addLayer, clearMap, layerQuery, setCamera, setOpacity} from '@/utils/map/ArcgisUtil'
 
 export function locationYjModel(id,isShow){
     if(isShow){
@@ -63,4 +63,36 @@ export function compareSjBeforeAfter(value,isShow) {
             addLayerByName('2022LjzAfter',isShow,1);
             break
     }
+}
+
+/**
+ * 维护水深面
+ */
+export function showWhss(isShow){
+    addLayer({
+        id: 'portLayer',
+        title: 'portLayer',
+        type: 'feature',
+        url: 'https://10.83.240.193:8090/arcgis/rest/services/digitalTwain_3857/MapServer/8',
+        visible: isShow,
+        opacity: 1,
+        token: '',
+        is_goto: true
+    })
+}
+
+export function locationOneWhss(code,isShow){
+    if(isShow){
+        layerQuery({
+            title: "digitalTwain",
+            layerId: "1",
+            where: "控制点区域='" + code + "'",
+            symbol: null,
+            is_draw: true,
+            is_clear: false,
+            callback: null
+        })
+    }else{
+        clearMap({is_draw: true, is_search:true, layers: []})
+    }
 }

+ 11 - 11
src/utils/map/Layer.js

@@ -14,7 +14,7 @@ let defaultLayerList = [
         id: 'waterPassenger',
         title: 'waterPassenger',
         type: 'feature',
-        url:'https://10.83.240.193:8090/arcgis/rest/services/water_passenger_3857/MapServer',
+        url:'http://10.83.68.109:6080/arcgis/rest/services/water_passenger_3857/MapServer',
         visible: false,
         opacity: 1,
         token: '',
@@ -25,7 +25,7 @@ let defaultLayerList = [
         id: 'digitalTwain',
         title: 'digitalTwain',
         type: 'feature',
-        url:'https://10.83.240.193:8090/arcgis/rest/services/digitalTwain_3857/MapServer',
+        url:'http://10.83.68.109:6080/arcgis/rest/services/digitalTwain_3857/MapServer',
         visible: false,
         opacity: 1,
         token: '',
@@ -36,7 +36,7 @@ let defaultLayerList = [
         id: 'ghjgCxall',
         title: 'ghjgCxall',
         type: 'shc_map',
-        url:'https://10.83.240.193:8090/arcgis/rest/services/ghjg_cxall/MapServer',
+        url:'http://10.83.68.109:6080/arcgis/rest/services/ghjg_cxall/MapServer',
         visible: false,
         opacity: 1,
         token: '',
@@ -98,7 +98,7 @@ export function addLayerByName(name,isShow,opacity){
                 id: 'portLayer',
                 title: 'portLayer',
                 type: 'feature',
-                url: 'https://10.83.240.193:8090/arcgis/rest/services/digitalTwain_3857/MapServer/0',
+                url: 'http://10.83.68.109:6080/arcgis/rest/services/digitalTwain_3857/MapServer/0',
                 visible: isShow,
                 opacity: opacity?opacity:1,
                 token: '',
@@ -121,7 +121,7 @@ export function addLayerByName(name,isShow,opacity){
                 id: 'jjqAreaLayer',
                 title: 'jjqAreaLayer',
                 type: 'feature',
-                url: 'https://10.83.240.193:8090/arcgis/rest/services/jingjiequ/MapServer',
+                url: 'http://10.83.68.109:6080/arcgis/rest/services/jingjiequ/MapServer',
                 visible: isShow,
                 opacity: opacity?opacity:0.5,
                 token: '',
@@ -145,7 +145,7 @@ export function addLayerByName(name,isShow,opacity){
                 id: 'dtqAreaLayer',
                 title: 'dtqAreaLayer',
                 type: 'feature',
-                url: 'https://10.83.240.193:8090/arcgis/rest/services/backArea/MapServer',
+                url: 'http://10.83.68.109:6080/arcgis/rest/services/backArea/MapServer',
                 visible: isShow,
                 opacity: opacity?opacity:0.5,
                 token: '',
@@ -168,7 +168,7 @@ export function addLayerByName(name,isShow,opacity){
                 id: 'mdAreaLayer',
                 title: 'mdAreaLayer',
                 type: 'feature',
-                url: 'https://10.83.240.193:8090/arcgis/rest/services/maodi/MapServer',
+                url: 'http://10.83.68.109:6080/arcgis/rest/services/maodi/MapServer',
                 visible: isShow,
                 opacity: opacity?opacity:0.5,
                 token: '',
@@ -191,7 +191,7 @@ export function addLayerByName(name,isShow,opacity){
                 id: 'ssfwqAreaLayer',
                 title: 'ssfwqAreaLayer',
                 type: 'feature',
-                url: 'https://10.83.240.193:8090/arcgis/rest/services/shuishangfuququ/MapServer',
+                url: 'http://10.83.68.109:6080/arcgis/rest/services/shuishangfuququ/MapServer',
                 visible: isShow,
                 opacity: opacity?opacity:0.5,
                 token: '',
@@ -217,7 +217,7 @@ export function addLayerByName(name,isShow,opacity){
                 id: 'channelLayer',
                 title: 'channelLayer',
                 type: 'feature',
-                url: 'https://10.83.240.193:8090/arcgis/rest/services/digitalTwain_3857/MapServer/2',
+                url: 'http://10.83.68.109:6080/arcgis/rest/services/digitalTwain_3857/MapServer/2',
                 visible: isShow,
                 opacity: opacity?opacity:1,
                 token: '',
@@ -439,7 +439,7 @@ export function addLayerByName(name,isShow,opacity){
                 id: '2022LjzBefore',
                 title: '2022LjzBefore',
                 type: 'scene',
-                url: 'https://geoscene.geosceneonline.cn/server/rest/services/Hosted/疏浚前_22年陆家嘴弯道/SceneServer',
+                url: 'https://geoscene.geosceneonline.cn/server/rest/services/Hosted/疏浚前拉伸10倍/SceneServer',
                 visible: isShow,
                 opacity: 1,
                 token: '',
@@ -452,7 +452,7 @@ export function addLayerByName(name,isShow,opacity){
                 id: '2022LjzAfterLayer',
                 title: '2022LjzAfterLayer',
                 type: 'scene',
-                url: 'https://geoscene.geosceneonline.cn/server/rest/services/Hosted/疏浚后_22年陆家嘴弯道/SceneServer',
+                url: 'https://geoscene.geosceneonline.cn/server/rest/services/Hosted/疏浚后拉伸10倍/SceneServer',
                 visible: isShow,
                 opacity: 1,
                 token: '',

+ 7 - 1
src/views/map/Index.vue

@@ -41,6 +41,7 @@
             <button @click="test('查询区域轨迹')">查询区域轨迹</button>
             <button @click="test('轨迹回放')">轨迹回放</button>
             <button @click="test('结束回放')">结束回放</button>
+            <button @click="test('维护水深面')">维护水深面</button>
         </div>
     </div>
 </template>
@@ -52,7 +53,7 @@
     import {setBoat, setBoatPath, onLocationBoat, locationBoat, boatDriving, drawArea, setMultiBoatHistory, playAreaBoatHistory,djldBoatHistory} from '@/utils/map/Boat'
     import {setCenter, setVideoCamera} from '@/utils/map/Common'
     import {addDefaultServer,addLayerByName,closeAllLayer} from '@/utils/map/Layer'
-    import {compareSjBeforeAfter} from '@/utils/map/Channel'
+    import {compareSjBeforeAfter,showWhss} from '@/utils/map/Channel'
 
     export default {
         name: "MapHome",
@@ -79,6 +80,7 @@
                 isShowDbsLayer:false,
                 isShowYjyjLayer:false,
                 isShowBmLayer:false,
+                isWhss:false,
             }
         },
         mounted(){
@@ -235,6 +237,10 @@
                     case '结束回放':
                         playAreaBoatHistory('stop')
                         break
+                    case '维护水深面':
+                        this.isWhss = !this.isWhss
+                        showWhss(this.isWhss);
+                        break
                     default:
                 }
             },