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@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Bart van den Eijnden OSGIS, Open Source GIS bart...@osgis.nl http://www.osgis.nl _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users