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

Vito Tafuni vito at vitotafuni.com
Tue Jun 22 07:02:45 EDT 2010


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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20100622/adf2b11e/attachment.html


More information about the Dev mailing list