> Can you explain why it makes a difference to iterate in this way?

map.layers isn't an array - treat it more like a stack.   When removeLaver
is used on the first layer, the stack collapses, what was layer[1] becomes
the new layer[0]

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Map-layers-doesn-t-seem-to-contain-all-layers-tp5996448p5997440.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