From f7462de5fcbea711f60fd4ed2ecd2bf7acdc34c6 Mon Sep 17 00:00:00 2001
From: lc <lc@qq.com>
Date: 星期二, 05 七月 2022 11:53:10 +0800
Subject: [PATCH] pull agin

---
 js/function_1001.js |   47 +++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 45 insertions(+), 2 deletions(-)

diff --git a/js/function_1001.js b/js/function_1001.js
index 967c708..54f3705 100644
--- a/js/function_1001.js
+++ b/js/function_1001.js
@@ -5,6 +5,48 @@
 // for change color locally.
 var data_list_1001;
 
+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)
+
+map.addLayer(maskLayer);
 
 function addWMSLayer(item) {
 
@@ -13,8 +55,8 @@
     pid: item.pid,
     name: item.name,
     type: "wms",
-    url: mars3d.global_variables.geoserver_url_predix + "geoserver/konglu_58/wms",
-    layers: "konglu_58:" + item.geoname_prefix + mars3d.global_variables.queryDataType,
+    url: mars3d.global_variables.geoserver_url_predix + "geoserver/konglu_demo/wms",
+    layers: "konglu_demo:" + item.geoname_prefix + mars3d.global_variables.queryDataType,
     crs: "EPSG:4326",
     parameters: {
       "styles": item.style_prefix + item.style_selected,
@@ -85,6 +127,7 @@
 
   map.addLayer(wmsLyer);
 
+
 }
 
 function addGuokongLayerDIV(item) {

--
Gitblit v1.9.1