What do you want to achieve? Maybe the v2 behaviour to zoom exactly to
the viewport of the kml overlay?

Getting the bounds can be achieved with an undocumented method

getDefaultViewport()

And after storing the bounds I achieved the best results with the
documented

fitBounds()

Have a look at

http://www.wolfpil.de/v3/kml-shapes.html

I'm hoping that getDefaultViewport()  will be officially documented.




On Jun 24, 6:01 pm, Farhad <[email protected]> wrote:
> Hi,
> I'm trying to migrate my code from V2 to V3. I'm using KMLLayer
> instead of GGeoXML, but I don't know how  to change getDefaultBounds()
> function which is available for GGeoXML.
> Any thought would be appreciated

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