[OpenLayers-Users] How get id of deleted/destroyed feature

voldapet petr.voldan at gmail.com
Tue Aug 16 05:07:53 EDT 2011


Hi,

I am using for deleting vector features function from this example:
http://openlayers.org/dev/examples/wfs-protocol-transactions.js
http://openlayers.org/dev/examples/wfs-protocol-transactions.js 

Situation: 
-1- I add new feature using Control.drawFeature -> this new feature has
feature.id, but feature.fid is null.
-2-  I delete this new feature -> it causes in deleteFeature function:
…
if(feature.fid == undefined) {
            this.layer.destroyFeatures([feature]);
…

Is there way how get ID of this deleted/destroyed feature?

Thanks
Regards Petr


--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-get-id-of-deleted-destroyed-feature-tp6690545p6690545.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110816/ecfde128/attachment.html


More information about the Users mailing list