I use Google Maps v3 in my application and I noticed a strange behavior, When I refresh the web page, the map zoomed out to display the whole map then get back to the zoom level I specify in my code. This happen fast but every time I refresh the page. How can I fix it?
Part of my code: var geographic = new OpenLayers.Projection("EPSG:4326"); var mercator = new OpenLayers.Projection("EPSG:3857"); maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508.34).transform(geographic,mercator); map = new OpenLayers.Map('map',{ projection: new OpenLayers.Projection('EPSG:3857'), displayProjection: new OpenLayers.Projection("EPSG:4326") }); gmap = new OpenLayers.Layer.Google("Google",{ numZoomLevels: 20}); map.addLayers([gmap]); -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Google-Maps-v3-with-Openlayers-First-Zoom-Level-tp5050662.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users