I'm trying to load a map, but the map does not boot.
The code I use to load the map:
function carregaMapa(endereco) {
var address = endereco;
geocoder.geocode({ 'address': address }, function (results, status) {
if (status == 'OK') {
map.setCenter(results[0].geometry.location);
map.setZoom(16);
var marker = new google.maps.Marker({
map: map,
position: results[0].geometry.location
});
} else {
alert('Geocode was not successful for the following reason: ' + status);
}
});
}