[OpenLayers-Users] zooming programmatically
bianchimro at gmail.com
Mon Feb 23 08:36:39 EST 2009
the problem was passing zoomlevel as a string, as you suggested. parseInt
solved the issue.
Sorry for posting the entire app url instead of code, i dit it as I was
asked in a previous message.
I didn't expect someone to go through all my code as it's quite complicated
as you might have noticed.
Thanks a lot for your help.
Christopher Schmidt-2 wrote:
> 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
> that helps."
> Only in this case, it's not a guess.
> Don't do that.
> Christopher Schmidt
> Users mailing list
> Users at openlayers.org
View this message in context: http://n2.nabble.com/zooming-programmatically-tp2361965p2372110.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users