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

Reply via email to