[OpenLayers-Users] Permalink won't work with sp merc
Mike Carsella
carsella11 at msn.com
Sat Oct 20 14:44:39 EDT 2007
OK. Thank you, that works. One thing I noticed though -- the url shows
"&lat=...&lon=..." where ... is in map units not latitude and longitude.
----- Original Message -----
From: "Christopher Schmidt" <crschmidt at metacarta.com>
To: "mcarsel" <carsella11 at msn.com>
Cc: <users at openlayers.org>
Sent: Saturday, October 20, 2007 11:46 AM
Subject: Re: [OpenLayers-Users] Permalink won't work with sp merc
> On Sat, Oct 20, 2007 at 10:32:36AM -0700, mcarsel wrote:
>> It looks like Permalink won't work when the map is not in lat/lon. I'm
>> using
>> spherical mercator. There are lat and lon parameters in the url.
>
> It does -- I've just tested.
>
> Setting up the permalink requires ensuring that you don't call setCenter
> every time the page loads -- if you have a setCenter or zoomToMaxExtent
> in your init() without checking if (!map.getCenter()), then you won't
> see the permalink work.
>
>> Another issue is the mouseposition control. I would like to see an
>> option
>> for lat/lon display for the mouse position even though the map may be in
>> another projection.
>
> http://trac.openlayers.org/ticket/1036
>
> Regards,
> --
> Christopher Schmidt
> MetaCarta
>
More information about the Users
mailing list