Re: [OpenLayers-Users] Swapping the base layer

2008-10-17 Thread Eric Lemoine
Hi. Quick response: if you're not to use the layer again then it's better to free memory and destroy it. I'm not the sure I'm helping you here... Eric 2008/10/16, Greg Ederer [EMAIL PROTECTED]: Hi, I have a control in a web page that lets the user swap out the base layer in a map. Currently,

[OpenLayers-Users] Swapping the base layer

2008-10-16 Thread Greg Ederer
Hi, I have a control in a web page that lets the user swap out the base layer in a map. Currently, I do this: // setup tiled layer var tmpLayer = new OpenLayers.Layer.WMS( tiled, http://; + hostName + :8080/geoserver/wms, { styles: '', layers: