lc
2022-07-05 26156c8fb646998c87be464735c0df8ea26c836c
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, // 方向,true时上下,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, // 方向,true时上下,false左右
//       speed: 15
//     })
//   }
// })
// graphicLayer.addGraphic(graphic)
map.addLayer(maskLayer);
// map.addLayer(maskLayer);
function addWMSLayer(item) {