[OpenLayers-Users] ModifyFeature events order

Andreas Hocevar ahocevar at opengeo.org
Fri Jul 12 04:12:32 PDT 2013


The event order is intentional, and there is a reason for it: in
beforefeaturemodified listeners, you can return false if you don't want the
selection to go away from the current feature.

Andreas.


On Tue, Jul 9, 2013 at 8:56 AM, Sergey Kolosov <sergey.kolosof at gmail.com>wrote:

> I'm migrating from OL 2.12 to OL 2.13. I used events 'featureselected' and
> 'featureunselected' and they was triggered in intuitive way (in my opinion)
> - first unselect selected feature and then select new one. Now with changes
> in ModifyFeature control i switched to 'beforefeaturemodified' and
> 'afterfeaturemodified' events. And they are triggered vice versa -
> first 'beforefeaturemodified' and then 'afterfeaturemodified'. Not shure if
> it is a problem, but i have some difficulties with such behavior. I can
> handle it. I just want to know if it is right order of events triggering.
> Thanks in advance.
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130712/ea865ff6/attachment.html>


More information about the Users mailing list