Hi, for some reason I can't get setZoom() to work.
I call it in this function:
function there(mag){
var sAddress = document.getElementById('address').value;
geocoder.geocode({'address':sAddress},function(results,status){
if (status == google.maps.GeocoderStatus.OK){
map.setCenter(results[0].geometry.location);
console.log(map);
setZoom(16);
} else {
alert("Geocode was not successful for the following reason: " + status);
} }
);
The map center is changed just fine, and for some reason the when I inspect the source it actually says the zoom has been set to 16, but the map still shows the same zoom level. Any help?