Since the Google Maps API update to V3.2 (17 Feb 2015) our maps have not been loading to their initial state, centered over the Gulf of Mexico.
When the center location is: center: new OpenLayers.LonLat(-90, 25) it doesn't render, but OpenLayers.LonLat(-91, 25) works fine. Any 90 lat or 0 lon fails.
Can anyone explain why the following code does/does not work?
var map;$(document).ready(function () { map = new OpenLayers.Map('olmap', { projection: 'EPSG:3857', layers: [ new OpenLayers.Layer.Google( "Google Hybrid", { type: google.maps.MapTypeId.HYBRID, numZoomLevels: 20 })], center: new OpenLayers.LonLat(-90, 25) //change to -91 and it works. .transform('EPSG:4326', 'EPSG:3857'), zoom: 4 });});See jsFiddle for your experimenting pleasure.
If this is a bug, who do I report it to, Google or OpenLayers?
أكثر...
When the center location is: center: new OpenLayers.LonLat(-90, 25) it doesn't render, but OpenLayers.LonLat(-91, 25) works fine. Any 90 lat or 0 lon fails.
Can anyone explain why the following code does/does not work?
var map;$(document).ready(function () { map = new OpenLayers.Map('olmap', { projection: 'EPSG:3857', layers: [ new OpenLayers.Layer.Google( "Google Hybrid", { type: google.maps.MapTypeId.HYBRID, numZoomLevels: 20 })], center: new OpenLayers.LonLat(-90, 25) //change to -91 and it works. .transform('EPSG:4326', 'EPSG:3857'), zoom: 4 });});See jsFiddle for your experimenting pleasure.
If this is a bug, who do I report it to, Google or OpenLayers?
أكثر...