lc
2022-07-05 26156c8fb646998c87be464735c0df8ea26c836c
js/index.js
@@ -72,6 +72,31 @@
      //构建地图
      initMap(data.map3d);
// 聊城边界
const maskLayer = new mars3d.layer.GeoJsonLayer({
  id: 300,
  url: "../data/liaocheng.geojson",
  mask: true,
  zIndex:100,
  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
});
map.addLayer(maskLayer);
      setTimeout(removeMask, 3000); //欢迎UI关闭处理
    },
    error: function (request, textStatus) {
@@ -83,8 +108,25 @@
  });
  initUI();
// const graphicLayer = new mars3d.layer.GraphicLayer()
//       map.addLayer(graphicLayer)
});
function removeMask() {
  $("#mask").remove();
}