[OpenLayers-Users] Permalink seems to not update map
jfranklin at hmgeo.com
Thu Mar 3 12:21:34 EST 2011
You're answer definitely lead me in the right direction. Since I'm
using GeoExt, I have to do permalinks in the "GeoExt Way", as it does
it's own variation of set center:
Thanks for the help!
> Wed Mar 02 2011 11:15:04 PM MST from "yvecai" <yvecai at gmail.com>
>Subject: Re: [OpenLayers-Users] Permalink seems to not update map
> On 02. 03. 11 23:13, jfranklin wrote:
>>I've added a permalink control to my map (via map.addControl(new
>> OpenLayers.Control.Permalink())) as shown in the permalink example on
>> the openlayers.org website.
>> However, it seems that when I take a copied permalink URL (after zooming
>> in a few times etc) and drop it in a different browser, it seems to have
>> no effect. I get the default extent/center/zoom level.
>> The page in question is here:
>> Any ideas? And thanks in advance for the help.
>> Users mailing list
>> Users at lists.osgeo.org
> If it helps, usually I add the permalink after calling for map.setCenter
> otherwise it always re-center the map on permalink:
> map.setCenter (lonLat, zoom);
> map.addControl(new OpenLayers.Control.Permalink());
> But I didn't see no setCenter in your code ...
> Users mailing list
> Users at lists.osgeo.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users