On Sep 7, 7:54 am, HK <[email protected]> wrote:
> Hello,
>
> I have a set of points which are loaded from the DB. I pass them as js
> arrays from which I create a polyline.
>
> Is there a way to center the map so as all the points of the polyline
> are visible?
>
> thanks

>From Mike Williams' tutorial:
Part 14 Fitting the map zoom to the data
http://econym.org.uk/gmap/basic14.htm

you can use GPolyline.getBounds() to get the bounds object for your
polyline.

  -- Larry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to