[OpenLayers-Users] setCenter bug

Gary Townsend (Spatial Mapping Ltd.) garyt at spatialmapping.com
Mon Jul 31 10:35:56 CDT 2006


I had the exact same problem with IE vs FireFox the only way I found to fix
it was to specify a zoom level in the setCenter if I don't IE will always
error out.

-----Original Message-----
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] On
Behalf Of Arnd Wippermann
Sent: July 30, 2006 12:48 PM
To: users at openlayers.org
Subject: Re: [OpenLayers-Users] setCenter bug

Hello,

I have experienced the same problem. I use an inputbox for the new center
coordinates and then use map.setCenter() and OL loops. Could it be, that OL
get all the tiles between the old and the new location?

Also I have a problem with setCenter() with IE. In one application after the
declaration of the map, the layers and the controls IE stops the application
with an error when I call setCenter(). With FF I have no problem. Have
someone a clue?

Mit freundlichen Grüssen

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




-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Brent Owens
Gesendet: Samstag, 29. Juli 2006 22:05
An: users at openlayers.org
Betreff: [OpenLayers-Users] setCenter bug

Hi everyone,

I found a bug (I think) where if you call map.setCenter() twice using the
same zoom level, open layers will fall into an infinite loop and gobble up
my cpu.

What I have are buttons where a user can click on them and it will take them
to different locations on the map. But these locations all use the same zoom
level, and the program dies. If I use a different zoom level between calls
to setCenter(), it works.

--
Brent Owens
(The Open Planning Project)

_______________________________________________
Users mailing list
Users at openlayers.org
http://mailman-viper.python-hosting.com/listinfo/users


_______________________________________________
Users mailing list
Users at openlayers.org
http://mailman-viper.python-hosting.com/listinfo/users




More information about the Users mailing list