0
I’m trying to upload a map, only the map won’t 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);
}
});
}
Any error message ?
– Victor Eyer
I’ve already solved it, I forgot to start the map. Thank you!
– Julia Helena