浏览代码

新创代码合并

sbj 1 年之前
父节点
当前提交
d2df90bc26
共有 4 个文件被更改,包括 18 次插入2 次删除
  1. 12 0
      src/utils/map/Layer.js
  2. 0 1
      src/views/hdsj/Index.vue
  3. 6 0
      src/views/map/Index.vue
  4. 0 1
      src/views/ssky/Index.vue

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

@@ -475,5 +475,17 @@ export function addLayerByName(name,isShow,opacity){
                 }
             })
             break
+        // 水深剖面
+        case 'pm_2020.2':
+            addLayer({
+                id: 'warterDepthLineLayer',
+                title: 'warterDepthLineLayer',
+                type: 'scene',
+                url: 'https://geoscene.geosceneonline.cn/server/rest/services/Hosted/断面_2020H2/SceneServer',
+                visible: isShow,
+                opacity: opacity?opacity:1,
+                token: ''
+            })
+            break
     }
 }

+ 0 - 1
src/views/hdsj/Index.vue

@@ -156,7 +156,6 @@
                 class="pageForDown pagi-default"
                 style="opacity: 0.6;color: #eff7fb"
                 small
-                background="false"
                 pager-count="4"
                 :current-page="currentPage"
                 :page-size="pageSize"

+ 6 - 0
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>
             <button @click="test('维护水深面')">维护水深面</button>
             <button @click="test('维护水深面-定位')">维护水深面-定位</button>
         </div>
@@ -81,6 +82,7 @@
                 isShowDbsLayer:false,
                 isShowYjyjLayer:false,
                 isShowBmLayer:false,
+                isSspmx:false,
                 isWhss:false,
             }
         },
@@ -238,6 +240,10 @@
                     case '结束回放':
                         playAreaBoatHistory('stop')
                         break
+                    case '水深剖面线':
+                        this.isSspmx = !this.isSspmx
+                        addLayerByName('sspmx',this.isSspmx);
+                        break
                     case '维护水深面':
                         this.isWhss = !this.isWhss
                         showWhss(this.isWhss);

+ 0 - 1
src/views/ssky/Index.vue

@@ -135,7 +135,6 @@
                 class="pageForDown pagi-default"
                 style="opacity: 0.6;color: #eff7fb"
                 small
-                background="false"
                 pager-count="4"
                 popper-class="is-first"
                 :current-page="currentPage"