[OpenLayers-Users] Cannot delete MultiPolygons completely
vGIS
valentino1s73s at gmx.net
Tue Sep 25 06:55:43 PDT 2012
Thanks for your hinit, made some mod on the demo code, and this works for me:
for (f in MPolyFeature) {
if(MPolyFeature[f].fid == undefined) {
wfs_mpolygon.destroyFeatures([MPolyFeature[f]]);
} else {
MPolyFeature[f].state = OpenLayers.State.DELETE;
wfs_mpolygon.events.triggerEvent("afterfeaturemodified", {MPolyFeature:
MPolyFeature[f]});
MPolyFeature[f].renderIntent = "select";
wfs_mpolygon.drawFeature(MPolyFeature);
}
}
Kind regards & thanks for the help,
vGIS
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Cannot-delete-MultiPolygons-completely-tp5004085p5004275.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list