[OpenLayers-Users] remove all layers

Armin Wäspy armin.waespy at lubw.bwl.de
Thu Oct 18 04:51:50 EDT 2007


hi list,
is there a function which removes all displayed layers?
my map has up to 50 layers, named box1....box50. 
 
i tried a for-loop with map.removeLayer('BOX'+i) but this don't work if less than 50 layers rendered.
anybody an idea how i can manage that?
thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20071018/79b4ca14/attachment.html


More information about the Users mailing list