通过layer.setStyle中对fillOpacity的修改使多边形中填充部分改为透明。
color改变颜色。
getJsonSz() {
var vm = this;
vm.featureGroupSz = esri.featureLayer({
url: "http://arcgis.map.htwater.net/arcgis/rest/services/LayerTrees/Huzhou_LayerTrees/MapServer/1",
onEachFeature(feature, layer){
layer.setStyle({
color:rgb(51,136,255),
weight: 3,
fillOpacity: 0,
opacity: 1,
})
}
})
vm.featureGroupSz.addTo(this.map);
}