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 <v...@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 > v...@vitotafuni.com > --------------------------------------------- > "Verba volant, scripta manent... data corrupted" > > _______________________________________________ > Dev mailing list > Dev@openlayers.org > http://openlayers.org/mailman/listinfo/dev > > -- Frédéric Junod Camptocamp SA _______________________________________________ Dev mailing list Dev@openlayers.org http://openlayers.org/mailman/listinfo/dev