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++) {

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  ?




--
Bernard Grosdoy
Ingénieur d'études et développements
Business Unit E-SPACE & Geo Information - Département APPLICATIONS
Cellule Eau, Environnement, Risques

CS Systèmes d'Information
Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
31506 Toulouse Cedex 05 - FRANCE
Tel : +33 561 39 46 46 / Std : +33 561 17 66 66 / Fax : +33 561 34 84 15
Email : [email protected]
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to