lc
2022-07-05 f7462de5fcbea711f60fd4ed2ecd2bf7acdc34c6
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, // 方向,true时上下,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) {