Hi! I'm coming back with more informations. So, I tested WMC instead of Permalink: that's just great! For this, I was inspired by the OL example, and also by this previous message: http://www.mail-archive.com/users@openlayers.org/msg05112.html
So, the issue I'm now encountering concerns WFS layers. In fact, WFS layers are not saved in WMC format. I think it should be normal: WMC only concerns WMS layers, doesn't it? Is there a way to save WFS layers with WMS layers in WMC format? I was thinking to get all the WFS layer names from a permalink, and then to add them in the WMC created. Does anyone know if this method could work? Geoffrey On Mon, 22 Aug 2011 15:18:18 +0200, gbrun <gb...@myopera.com> wrote: > Thanks for your reply! So I will look at the OpenLayers WMC example. > > I don't know what exactly is WMC but I will look after this! > > Geoffrey > > > On Mon, 22 Aug 2011 14:47:02 +0200, Matt Priour > <mpri...@kestrelcomputer.com> wrote: > >> yes you are correct. >> The permalink is a simple string which indicates each layer’s >> visibility. If the order of the layers or the number of layers included >> changes between when the permalink was created and when it is applied, >> then you won’t get the same layers displayed as when you saved it. >> >> I had a similar situation. We went with what is likely an overly heavy >> solution for you. We saved the map state in a WMC file (using >> OpenLayers.Format.WMC) and then used a URL to the WMC in our permalink >> rather than the normal parameters that OL uses. I’m sure there is an >> intermediate solution. >> >> Matt Priour >> Kestrel Computer Consulting >> >> From: gbrun >> Sent: Monday, August 22, 2011 4:18 AM >> To: users@geoext.org >> Subject: [Users] Added layers and permalink >> >> Hi list! >> >> I've just a simple question. I'm trying to use the GeoExt permalink >> class. >> It partly works. >> >> In fact, zoom and map center work fine: the problem comes from the >> displayed layers. In this application, the user can add some layers from >> a >> tree panel to the map. But when I generate a permalink with added >> layers, >> these layers aren't displayed when I access the application with the >> permalink (while these layers are mentioned in the permalink URL). I >> think >> the problem comes from the fact, that these layers aren't in the initial >> map. So the permalink tries to find these layers but it doesn't achieve. >> It only finds the initial layer, so it's the only one the permalink can >> display. Am I true? >> >> Geoffrey >> > > -- Using Opera's revolutionary email client: http://www.opera.com/mail/ _______________________________________________ Users mailing list Users@geoext.org http://www.geoext.org/cgi-bin/mailman/listinfo/users