[OpenLayers-Users] WMC - Loading layers as 'not' baseLayers

James Leveille James_Leveille at dmr.ca
Thu Mar 5 08:28:14 EST 2009


Hi,
 
I'm loading a context as follow :
 
[...]
var wmc = new OpenLayers.Format.WMC ();
wmc.read ( oHttpRequest.responseText, {map: map});
[...]
 
It works fine but all the layers are loaded as base layers.
Since I dont want those to be base layers, I've tried :
 
          oMap.layers[xyz].setIsBaseLayer = false;
          oMap.events.triggerEvent("changebaselayer");

But it's not working.
How can I load those layers so they are not base layers ?
 
Best regards.
James Léveillé

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090305/de783a29/attachment.html


More information about the Users mailing list