[OpenLayers-Users] permalink doesnt work - solved

karpi karpi.lists at email.cz
Mon Oct 15 15:32:28 EDT 2007


Thanks Chris. That was exactly this! :)

15/10/07 20:49, crschmidt at metacarta.com napsal(a):
> On Mon, Oct 15, 2007 at 07:56:20PM +0200, karpi wrote:
> > 
> > Hello all there.
> > Does anyone know why permalink does not work on this map ?
> > http://gismaster.liberix.cz/~karpi/kralupy/openlayers.html
> 
> You call setCenter always. You can't do that. Instead, do: 
> 
> if (!map.getCenter()) { map.setCenter() }
> 
> REgards,
> -- 
> Christopher Schmidt
> MetaCarta




More information about the Users mailing list