From 26156c8fb646998c87be464735c0df8ea26c836c Mon Sep 17 00:00:00 2001
From: lc <lc@qq.com>
Date: 星期二, 05 七月 2022 15:36:01 +0800
Subject: [PATCH] 添加聊城遮罩层

---
 js/function_1001.js |   78 +++++++++++++++++++-------------------
 1 files changed, 39 insertions(+), 39 deletions(-)

diff --git a/js/function_1001.js b/js/function_1001.js
index 54f3705..0e402a3 100644
--- a/js/function_1001.js
+++ b/js/function_1001.js
@@ -5,48 +5,48 @@
 // for change color locally.
 var data_list_1001;
 
-const graphicLayer = new this.mars3d.layer.GraphicLayer()
-      map.addLayer(graphicLayer)
+// const graphicLayer = new this.mars3d.layer.GraphicLayer()
+//       map.addLayer(graphicLayer)
 
 
-// 鑱婂煄杈圭晫
-const maskLayer = new this.mars3d.layer.GeoJsonLayer({
-  id: 300,
-  url: "/data/liaocheng.geojson",
-  mask: true,
-  symbol: {
-    styleOptions: {
-      fill: true,
-      color: "#111111",
-      opacity: 0.9,
-      outline: false,
-      outlineColor: "#39E09B",
-      outlineWidth: 8,
-      outlineOpacity: 0.8,
-      arcType: Cesium.ArcType.GEODESIC,
-      clampToGround: true,
-    },
-  },
-  show: true,
-  flyTo: false
-});
-// 杈圭晫澧�
-const graphic = new this.mars3d.graphic.WallEntity({
-  positions: this.liaocheng_boundary,
-  style: {
-    diffHeight: 1500,
-    material: this.mars3d.MaterialUtil.createMaterialProperty(this.mars3d.MaterialType.LineFlow, {
-      image: "img/textures/fence.png",
-      color: "#bdf700",
-      repeat: new Cesium.Cartesian2(5, 1),
-      axisY: true, // 鏂瑰悜锛宼rue鏃朵笂涓嬶紝false宸﹀彸
-      speed: 15
-    })
-  }
-})
-graphicLayer.addGraphic(graphic)
+// // 鑱婂煄杈圭晫
+// const maskLayer = new this.mars3d.layer.GeoJsonLayer({
+//   id: 300,
+//   url: "/data/liaocheng.geojson",
+//   mask: true,
+//   symbol: {
+//     styleOptions: {
+//       fill: true,
+//       color: "#111111",
+//       opacity: 0.9,
+//       outline: false,
+//       outlineColor: "#39E09B",
+//       outlineWidth: 8,
+//       outlineOpacity: 0.8,
+//       arcType: Cesium.ArcType.GEODESIC,
+//       clampToGround: true,
+//     },
+//   },
+//   show: true,
+//   flyTo: false
+// });
+// // 杈圭晫澧�
+// const graphic = new this.mars3d.graphic.WallEntity({
+//   positions: this.liaocheng_boundary,
+//   style: {
+//     diffHeight: 1500,
+//     material: this.mars3d.MaterialUtil.createMaterialProperty(this.mars3d.MaterialType.LineFlow, {
+//       image: "img/textures/fence.png",
+//       color: "#bdf700",
+//       repeat: new Cesium.Cartesian2(5, 1),
+//       axisY: true, // 鏂瑰悜锛宼rue鏃朵笂涓嬶紝false宸﹀彸
+//       speed: 15
+//     })
+//   }
+// })
+// graphicLayer.addGraphic(graphic)
 
-map.addLayer(maskLayer);
+// map.addLayer(maskLayer);
 
 function addWMSLayer(item) {
 

--
Gitblit v1.9.1