setZoom(16) to map.setZoom(16)
-- Luke

On Thu, Jul 21, 2011 at 3:32 PM, Michael Jennings <[email protected]>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 view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/wm6zdnH6HlsJ.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to