[OpenLayers-Users] zooming programmatically

goliah bianchimro at gmail.com
Fri Feb 20 18:38:51 EST 2009


Dear list,

a simple topic but i simply cannot get out... 

i have a map with a google maps base layer, and a gml or kml layers as
overlays.
I'd like to programmatically zoom with js
I've tried

map.zoomTo(zoomlevel);

where zoomlevel is the desired zoom level.
The result is that overlay is modified in size, but base layer just doesn't
zoom.

Zooming and panning with mousewheel or OL zoom control works just fine.

What am I missing?

cheers 
Mauro
-- 
View this message in context: http://n2.nabble.com/zooming-programmatically-tp2361965p2361965.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list