[OpenLayers-Users] Permalink seems to not update map
yvecai
yvecai at gmail.com
Thu Mar 3 01:15:04 EST 2011
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
More information about the Users
mailing list