Re: [OpenLayers-Users] map.removeLayer vs. map.destroy

2010-11-28 Thread Phil Scadden
I am doing very similar things. Simple is add all the new layers first, then remove the old ones. Probably a lot more effecient though to remove all but the current baselayer, add all the new ones, then remove the old baselayer. -- Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland

[OpenLayers-Users] map.removeLayer vs. map.destroy

2010-11-27 Thread Puneet Kishor
I have a map with lots of image layers (in addition to a few reference layers) for "scenario A". References to these image layers are stored in a global array, say "globLayers". I want to "reset" my map to depict another "scenario B". Right now I am removing all the layers for scenario A and th