[OpenLayers-Users] DrawFeature and FeatureAdded event

Sture Dingsøyr candalt at online.no
Tue Nov 25 05:24:00 EST 2008


Hi Eric

The patch worked just fine :-) Thanx alot...

Will this patch be commited to the OpenLayers source, so that in e.g. version 2.8 this patch will be a part of the source code?


Sture


On Tue, Nov 25, 2008 at 8:49 AM, Sture Dingsøyr <candalt at online.no> wrote:
> Hi Mika and Eric...thanx for quick response :-)
>
> Have published an example on 
> http://www.avinet.no/bugopenlayers/openlayers-2.7/examples/modify-feat
> ure.html
>
> Have added a control button to draw the regular polygon.
>
> ...if the user just clicks (no mouse movement between up and down) the feature is added to the layer, but the featureadded event is not triggered (should produce a javascript alert)..
>
> So the problem is that the featureadded event does not fire in this case.
>
> Have added events to both the layer and control...and it sems to me that in none of the cases the event is triggered.
>
> Try the example...(just click in the map).

I created a ticket and attached a patch to it. Could you give it a try?

<http://trac.openlayers.org/ticket/1857>
--
Eric


More information about the Users mailing list