AW: [OpenLayers-Users] delete controls withiut removing drawn features
Arnd Wippermann
arnd.wippermann at web.de
Wed Jan 18 13:11:57 EST 2012
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: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Peter
Gesendet: Mittwoch, 18. Januar 2012 11:31
An: users at openlayers.org
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
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users
More information about the Users
mailing list