[OpenLayers-Users] afterfeaturemodified
Eric Lemoine
eric.c2c at gmail.com
Thu Nov 13 11:52:36 EST 2008
Hi. No afterfeaturemodified event should be triggered when your
register a listener. Could you share your code? Cheers, Eric
2008/11/13, Didrik Pinte <lists at dipole-consulting.com>:
> Hi,
>
> I'm trying to have a layer on wich a user can add a new feature and/or
> modify the existing feature. When the feature is added or modified, it
> is posted to the server in a geojson stream.
>
> I've registered the afterfeaturemodified to catch when the feature is
> modified but it is called two times :
> - one time because I registered it
> - a second time because to finish the modification I have to "unselect"
> the feature that calls afterfeaturemodified too ...
>
> How can I cleanly solve the problem ? Registering "featureunselected"
> make my callback being called also when "featureadded" events.
>
> Thanks
>
> Didrik
>
More information about the Users
mailing list