Closed ailong closed 7 years ago
How to get feature properties?
const objGeneral = {
url: 'http://' + document.domain + ':8080/geoserver/wfs',
geometryField: 'test',
typeNS: 'test',
typeName: 'test',
filter: new L.Filter.EQ().append('test', 0),
crs: L.CRS.EPSG4326,
style: {
color: 'blue',
weight: 12,
opacity: 0.5
}
};
const wfsGeneral = new L.WFST(objGeneral).addTo(map);
wfsGeneral.on('load', function () {
wfsGeneral.eachLayer((layer) => {
console.log(layer.getProperty('test'))
});
});
Thank You @arszp10
I can add wfs layer to map,but can not get Layer and Layer Properties use 'getLayers()'