[OpenLayers-Users] zooming programmatically
crschmidt at metacarta.com
Mon Feb 23 07:33:28 EST 2009
On Mon, Feb 23, 2009 at 01:09:39AM -0800, goliah wrote:
> my app is located at
so I don't have to open 6 different JS files to find it. Ideally, you
should start from an example, and modify it until it breaks, then share
*that*, rather than you entire application. In this case, the key point
was the loadLayerOpts, which is the source of the broken code.
My guess is that you're passing a string as the zoomlevel: "16" or some
such. run parseInt(zoomLevel) before passing it to setCenter, and see if
Only in this case, it's not a guess.
Don't do that.
More information about the Users