I have declared a layer of grouped layers like so -
// Base Group Layers
layer_Base = new OpenLayers.Layer.WMS("Base",
"http://localhost/WebServices/Request.aspx",
{
layers: ['Rural_Lot_Line', 'Rural_Block_Line',
'Section_Lines', 'School_Sites', 'Linear_Parks', 'Recreation_Sites',
'Neighbourhood_Parks', 'Major_Parks', 'Neighbourhood_Boundary',
'Neighbourhood_Area__clear_', 'Hydrology', 'City_Boundary',
'Street_Secondary_Segment', 'Street_Segment', 'Arterial', 'Highway',
'Rural_Highway', 'Bridge'],
VERSION: "1.1.1",
transparent: true
},
{ isBaseLayer: false,
singleTile: true,
visibility: false,
buffer: 1,
ratio: 1
}
);
So when I drill down into layer_Base.params and look at the LAYERS[] it has
all my layers in there. Well I am making some code to "switch themes"
basically removing all layers and setting visibility to false then re-adding
the layers that I need. Well I have declared layer_base as a global
variable.. and now I can see when I re-add it the Params and layers[] is
empty. Is there anyway to stop this or do I really have to redeclare my
layers each time I need to re-add them? Thanks for any suggestions
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Does-removing-layer-from-map-also-remove-the-layer-s-param-attributes-tp5767524p5767524.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