[OpenLayers-Users] Permalink seems to not update map
jfranklin
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:
http://geoext.org/lib/GeoExt/state/PermalinkProvider.html
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:
>> http://hmgeo.com/mapping/dev.html
>>
>> Any ideas? And thanks in advance for the help.
>> _______________________________________________
>> Users mailing list
>> Users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>>
>>
> 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 ...
>
> Yves
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110303/7a1c5e95/attachment.html
More information about the Users
mailing list