js/function.js
@@ -183,3 +183,30 @@ } } function mask_selection(userid){ //geojson 各行政区边界线 if(userid != null || userid != undefined){ geoJsonLayer = new mars3d.layer.GeoJsonLayer({ url: "./data/"+userid+".geojson", mask: true, //标识为遮罩层【重点参数】 symbol: { styleOptions: { fill: true, color: "rgb(2,26,79)", opacity: 0.9, outline: true, outlineColor: "#39E09B", outlineWidth: 8, outlineOpacity: 0.8, arcType: Cesium.ArcType.GEODESIC, clampToGround: true, }, }, }); map.addLayer(geoJsonLayer); }else{ return } }