<font color="#000000"><font size="2"><font face="trebuchet ms,sans-serif">I have this error when i try </font></font></font><font color="#000000"><font size="2"><font face="trebuchet ms,sans-serif">to deactivate the DrawFeatureControl (on featureadded event) </font></font></font><font color="#000000"><font size="2"><font face="trebuchet ms,sans-serif">using a RegulaPolygon Handler<br>

<br>Error: this.layer is null<br>Source File: .../openlayers/lib/OpenLayers/Handler/RegularPolygon.js<br>Line: 382<br><br>the problem is not present if using Polygon Handler<br><br>i&#39;ve found a very old question (~2008) like this on users mailing list <br>

but no answer on the right way to deactivate the controller<br><br>thanks<br><br>-Vito-<br><br><br clear="all"></font></font></font>--<br>-----------<br>Tafuni Vito<br><a href="mailto:vito@vitotafuni.com">vito@vitotafuni.com</a><br>

---------------------------------------------<br>&quot;Verba volant, scripta manent... data corrupted&quot;<br>