zhiyuan-007 1 hete
szülő
commit
06ad0e26f4
4 módosított fájl, 26 hozzáadás és 2 törlés
  1. 9 0
      src/data/resources.json
  2. 16 1
      src/utils/map/addLayer.js
  3. 1 1
      src/views/home/cpns/Layers.vue
  4. BIN
      uav_manage.zip

+ 9 - 0
src/data/resources.json

@@ -8,6 +8,15 @@
     "opacity": 1,
     "type": "scene"
   },
+  {
+    "title": "东方明珠",
+    "D_CODE": "D85030103202504",
+    "id": "D85030103202504",
+    "url": "https://192.168.2.140:6443/geoscene/rest/services/DFMZ/SceneServer",
+    "visible": false,
+    "opacity": 1,
+    "type": "scene"
+  },
   {
     "title": "影像底图",
     "D_CODE": "50115036",

+ 16 - 1
src/utils/map/addLayer.js

@@ -110,7 +110,7 @@ export async function AddSingleLayer(params) {
 				visible: params.visible,
 				opacity: 1,
 				url: params.url + '/SceneServer',
-				where: 'objectid not in  (3941595,3841426)',
+				where: 'objectid not in  (18797)',
 				type: 'scene',
 				theme: '高度',
 				popupEnabled: false,
@@ -137,6 +137,21 @@ export async function AddSingleLayer(params) {
 				},
 				mapID: params.mapID,
 			})
+		} else if (params.title == '东方明珠') {
+			invokeParams('AddSingleLayer', {
+				id: params.id,
+				title: params.title,
+				visible: params.visible,
+				opacity: 1,
+				url: params.url + '/SceneServer',
+				type: 'scene',
+				elevationInfo: {
+					//下沉高度
+					mode: 'absolute-height',
+					offset: -3.5,
+				},
+				mapID: params.mapID,
+			})
 		} else {
 			invokeParams('AddSingleLayer', {
 				id: params.id,

+ 1 - 1
src/views/home/cpns/Layers.vue

@@ -46,7 +46,7 @@ const layersData = ref([
 	{
 		name: '底板数据',
 		children: [
-			{ id: 'bm', name: '白模', alias: '全市白模', icon: 'resource-bm', check: false },
+			{ id: 'bm', name: '白模', alias: ['全市白模', '东方明珠'], icon: 'resource-bm', check: false },
 			{ id: 'yx', name: '影像', alias: '影像底图', icon: 'resource-yx', check: false },
 		],
 	},

BIN
uav_manage.zip