I have a layer in geoserver and I want to get this layer with WMS in OpenLayers.
population = new OpenLayers.Layer.WMS("population",
"http://localhost:8080/geoserver/world/wms",
{'layers': 'population', transparent: true, format: 'image/png'},
{isBaseLayer: false}
);
I get the property of feature with OpenLayers.Control.WMSGetFeatureInfo
.
featureInfo = new OpenLayers.Control.WMSGetFeatureInfo({
queryVisible: true,
layers: [population],
output: 'features',
infoFormat : 'application/vnd.ogc.gml',
format: new OpenLayers.Format.GML,
eventListeners: {
getfeatureinfo: showInfo
}
});
I want to edit the property of some features.
How can i do?