fuchengshen
2022-10-19 8dc63fb2f82aefc329addd61781ce74a0f8edca3
js/index.js
@@ -104,24 +104,7 @@
  map = new mars3d.Map("mars3dContainer", mapOptions);
  //上海边界遮罩
  geoJsonLayer = new mars3d.layer.GeoJsonLayer({
    url: "data/shanghai.json",
    mask: true, //标识为遮罩层【重点参数】
    symbol: {
      styleOptions: {
        fill: true,
        color: "rgb(2,26,79)",
        outline: true,
        outlineColor: "#39E09B",
        outlineWidth: 8,
        outlineOpacity: 0.8,
        arcType: Cesium.ArcType.GEODESIC,
        clampToGround: true,
      },
    },
    zIndex: 99999999999,
  });
  map.addLayer(geoJsonLayer);
  //构造widget
  initWidget(map);