On Thursday, July 21, 2011 at 7:32:21 AM UTC+2, Michael Jennings wrote:
>
> 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?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
For more options, visit https://groups.google.com/d/optout.

Reply via email to