[OpenLayers-Dev] problems on deactivate DrawFeature Control after feature added

Frederic Junod frederic.junod at camptocamp.com
Tue Jun 22 09:47:34 EDT 2010


Hello,

Thanks for reporting this issue, I've opened a ticket:
http://trac.openlayers.org/ticket/2701

Please test if it works for you.

fredj

On Tue, Jun 22, 2010 at 1:02 PM, Vito Tafuni <vito at vitotafuni.com> wrote:
> I have this error when i try to deactivate the DrawFeatureControl (on
> featureadded event) using a RegulaPolygon Handler
>
> Error: this.layer is null
> Source File: .../openlayers/lib/OpenLayers/Handler/RegularPolygon.js
> Line: 382
>
> the problem is not present if using Polygon Handler
>
> i've found a very old question (~2008) like this on users mailing list
> but no answer on the right way to deactivate the controller
>
> thanks
>
> -Vito-
>
>
> --
> -----------
> Tafuni Vito
> vito at vitotafuni.com
> ---------------------------------------------
> "Verba volant, scripta manent... data corrupted"
>
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>
>



-- 
Frédéric Junod
Camptocamp SA



More information about the Dev mailing list