[OpenLayers-Users] Google Maps map does not reflect zoom level
change
Axel Müller
axel.mueller at avanux.de
Fri Jul 3 17:19:56 EDT 2009
Hi,
Based on some parameters I change the zoom level using
map.setCenter(lonlat, zoom).
This works perfectly for OSM Mapnik layer but not for Google layer where
the pan zoom bar reflects the new zoom level but the map itself still
shows the previous zoom level. Am I missing something?
osmLayer = new OpenLayers.Layer.OSM.Mapnik("Mapnik");
gMapLayer = new OpenLayers.Layer.Google("Google Maps", {numZoomLevels:
20, isBaseLayer: true });
Axel
More information about the Users
mailing list