[OpenLayers-Users] setCenter bug

Arnd Wippermann arnd.wippermann at web.de
Fri Aug 11 03:24:08 CDT 2006


Hello,

I have the same problem with setCenter. To look at I have taken an
OpenLayers Example and insert the setCenter function:
http://gis.ibbeck.de/pinguinale/setCenterbug%20example.html (Our server has
some problems, to get the application working maybe it is necessary to
refresh the side). I use http://openlayers.org/api/OpenLayers.js, but have
also tested with http://openlayers.org/api/1.0/OpenLayers.js.

The start map is Sinai. Click on Japan centers the map for Japan. With IE
you can see, IE wants to load 527 tiles. The higher the zoomlevel the more
tiles have to load.

To prevent the looping I have found out, that I can center with zoomlevel+1
and then center with zoomlevel-1. It works. Only 9 tiles will be loaded.
With the checkbox ZoomFlag checked, you can use this possibly.

Mit freundlichen Grüssen

Arnd Wippermann
http://gis.ibbeck.de/pinguinale/







More information about the Users mailing list