Browse Source

功能修改20250318-01

zhiyuan-007 2 weeks ago
parent
commit
ebad39b520
2 changed files with 15 additions and 93 deletions
  1. 14 92
      src/utils/map/addLayer.js
  2. 1 1
      src/views/home/cpns/PanelSjwg.vue

+ 14 - 92
src/utils/map/addLayer.js

@@ -142,7 +142,7 @@ export async function AddSingleLayer(params) {
 				id: params.id,
 				title: params.title,
 				visible: params.visible,
-				opacity: params.opacity,
+				opacity: 0.8,
 				url: params.url + '/SceneServer',
 				where: 'objectid not in  (3941595,3841426)',
 				type: 'scene',
@@ -154,98 +154,20 @@ export async function AddSingleLayer(params) {
 					offset: -3.5,
 				},
 				renderer: {
-					type: 'class-breaks',
-					field: 'HEIGHT',
-					classBreakInfos: [
-						{
-							minValue: 0,
-							maxValue: 10,
-							symbol: {
-								type: 'mesh-3d',
-								symbolLayers: [
-									{
-										type: 'fill',
-										material: {
-											color: [55, 135, 192, 0.7],
-											colorMixMode: 'replace',
-										},
-										edges: {
-											type: 'solid',
-											color: [0, 0, 0, 0.6],
-											size: 1,
-										},
-									},
-								],
-							},
-							label: '<10',
-						},
-						{
-							minValue: 10.1,
-							maxValue: 24,
-							symbol: {
-								type: 'mesh-3d',
-								symbolLayers: [
-									{
-										type: 'fill',
-										material: {
-											color: [148, 195, 223, 0.7],
-											colorMixMode: 'replace',
-										},
-										edges: {
-											type: 'solid',
-											color: [0, 0, 0, 0.6],
-											size: 1,
-										},
-									},
-								],
-							},
-							label: '10~24',
-						},
-						{
-							minValue: 24.1,
-							maxValue: 100,
-							symbol: {
-								type: 'mesh-3d',
-								symbolLayers: [
-									{
-										type: 'fill',
-										material: {
-											color: [230, 238, 251, 0.7],
-											colorMixMode: 'replace',
-										},
-										edges: {
-											type: 'solid',
-											color: [0, 0, 0, 0.6],
-											size: 1,
-										},
-									},
-								],
-							},
-							label: '24~100',
-						},
-						{
-							minValue: 100.1,
-							maxValue: 1000,
-							symbol: {
-								type: 'mesh-3d',
-								symbolLayers: [
-									{
-										type: 'fill',
-										material: {
-											color: [235, 240, 249, 0.7],
-											colorMixMode: 'replace',
-										},
-										edges: {
-											type: 'solid',
-											color: [0, 0, 0, 0.6],
-											size: 1,
-										},
-									},
-								],
+					type: 'simple',
+					symbol: {
+						type: 'mesh-3d',
+						symbolLayers: [
+							{
+								type: 'fill',
+								material: {
+									color: [102, 167, 219, 0.9],
+									//color: [255, 255, 255, 0.9],
+									colorMixMode: 'replace',
+								},
 							},
-							label: '>100',
-						},
-					],
+						],
+					},
 				},
 				mapID: params.mapID,
 			})

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

@@ -200,7 +200,7 @@ function handleCheck(item, type) {
 			color = hexToRgb(airSpaceTypes.find((i) => i.value === item.spaceType).color, 0.5)
 			break
 		case 'plot':
-			color = [0, 0, 255, 0.5]
+			color = [69, 220, 181, 0.7]
 			break
 		case 'route':
 			color = [255, 255, 0, 0.5]