Did something change on how to remove map layers? I thought mine was working
before but it is no longer working.. trying to remove all layers using the
following code and when I check the number before/after it is exactly the
same, what gives? Appreciate any assistance!

 var num = map.getNumLayers();
 for (var i = num - 1; i >= 0; i--) {
        map.removeLayer(map.layers[i]);
        } 
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Cannot-remove-all-layers-from-map-with-OpenLayers-2-10-tp5745994p5745994.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

Reply via email to