[OpenLayers-Users] WMC - Loading layers as 'not' baseLayers
Bart van den Eijnden (OSGIS)
bartvde at osgis.nl
Thu Mar 5 08:49:26 EST 2009
Hi,
use {layerOptions: {isBaseLayer: false}} in the constructor of Format.WMC.
Best regards,
Bart
James Leveille wrote:
> 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é
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
--
Bart van den Eijnden
OSGIS, Open Source GIS
bartvde at osgis.nl
http://www.osgis.nl
More information about the Users
mailing list