Sorry no, this is not correct. Please re-read the reference documentation:

http://code.google.com/apis/maps/documentation/javascript/reference.html#Map

setCenter(latlng:LatLng)

There is no 'zoom' parameter.

Your experience leads me to believe there's probably something else wrong
with your code.

Chris

On Fri, Jun 10, 2011 at 9:19 AM, 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)
>
> *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 view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/MyCQex-RZQYJ.
> 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.
>



-- 
http://twitter.com/broady

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