[OpenLayers-Users] beforefeatureadded event not firing on Layer
Eric Lemoine
eric.lemoine at camptocamp.com
Fri Aug 14 03:35:00 EDT 2009
On Friday, August 14, 2009, John Cartwright
<john.c.cartwright at comcast.net> wrote:
> Hello All,
>
> I have OpenLayers.Layer.Vector layer on which I've defined the
> "beforefeatureadded" and "beforefeaturesadded" events, e.g.
>
> vectors.events.on({"beforefeaturesadded": report, "beforefeatureadded":
> report});
>
> Then I'm adding features to this layer using the
> OpenLayersControlDrawFeature control. Problem is that the above events
> don't seem to be firing as I add additional features to the layer. The
> "featureadded" event fires, but not the "beforefeatureadded".
>
> This is version 2.8. Can someone please point out what I'm doing wrong
> here?
Hi.
this is weird. Can you reproduce that in a minimal example with just a
vector layer and a draw feature control?
Cheers,
>
> Thanks!
>
> --john
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
More information about the Users
mailing list