|
First, I'm new on this list, maybe I will use it not really correctly. I will probably ask for already answered questions. Now my purpose. I try to use in a production context Web Map Context. The goal is to persist a user's wmc context in its "preference" in DB. I started form the wmc.html exemple ( OpenLayers-2.12)) I add 4 layers : a google one a osm one two WMS "classics' When I write the WMC only the two WMS ar in the final xml It seems correct regarding to the lib : WMC.js around line 170 for (var i=0, len=layers.length; i<len; i++) { var layer = layers[i];
if (layer
instanceof OpenLayers.Layer.WMS) {
context.layersContext.push(this.layerToContext(layer));
}
}
here are tests for my layers : layer instanceof OpenLayers.Layer.OSM true -> not in wmc layer instanceof OpenLayers.Layer.Google true -> not in wmc layer instanceof OpenLayers.Layer.WMS true -> in wmc Please how I can solve that ? thank you. PS : in on line wmc sample a google layer is written in wmc ... ? other version ? --
|
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users

