It seems, that your features are only drawn on a temporary layer. 
And deleting the control or deactivating it, deletes also this layer and
causes the error.

Arnd

-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Peter
Gesendet: Mittwoch, 18. Januar 2012 11:31
An: [email protected]
Betreff: [OpenLayers-Users] delete controls withiut removing drawn features

Thanks this works. but my problem now is, that all the polygons i have drawn
are deleted when i destroy the control and i get an Error with:
this.rendererRoot is null

...nts.triggerEvent("beforefeaturesadded",d)===!1)return;a=d.features}for(va
r
d=[],...

OpenLayers.js (Zeile 795)

so i any ideas how i can solve this? 

Thans and Greetings

Peter


--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Drawfeature-with-multiple-vector-laye
rs-tp7184326p7199558.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to