Google Maps stopped working suddenly (blank map)

I start with google maps. just learning. some time ago it worked. now he's gone. everything seems to work in UI Controls, Markers / Overlay elements, but the map is empty.

google.load ("jquery", "1.3.2");
google.load ("maps", "2");
google.setOnLoadCallback (function () {
    var map = new google.maps.Map2 (document.getElementById ("map"));
    map.setCenter (new google.maps.LatLng (103.8, 1.37), 13);
    map.setUIToDefault ();
    map.addOverlay (new google.maps.Marker (new google.maps.LatLng (103.8, 1.37)));
});

http://i.stack.imgur.com/daAiL.png

+2


source to share


1 answer


The point you are trying to center the map at is not a valid Lat / Lon pair: Latitude works from +/- 90 degrees: you go +103.8



it looks like you have your parameters wrong (Lat +1.37, Lon +103.8 puts you in Malaysia)

+3


source







All Articles