On Jun 9, 4:19 pm, bkizzy <[email protected]> wrote:
> All,
>
> Looks like the api v3 docs omit the zoom level from the map.setCenter()
> method. Should be:
>
> map.setCenter(*latlng, zoom)

Unless things have changed, the setCenter method of the GMap class in
v3 only takes one parameter.  The documentation is correct.  It is
different from v2.

http://code.google.com/apis/maps/documentation/javascript/reference.html#Map
getCenter()     LatLng

Note that you can set the center and zoom in one method by using the
GMap.setOptions method.

  -- Larry

>
> *If this is omitted the map will return to the default zoom level specified
> during instantiation. Just lost a bunch of time messing with this, I hope
> google employees are monitoring and that docs will be revised.
>
> Good luck!

-- 
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