js/function.js
@@ -232,7 +232,25 @@ function mask_selection(regionCode){ if(regionCode == 0){ return 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); // return } //geojson 各行政区边界线 geoJsonLayer = new mars3d.layer.GeoJsonLayer({