On Jan 20, 9:56 am, Sasha <[email protected]> wrote:
> Hellow, im new her ... sor for my pure english :)
>
> I have one task, read gpx file and show track at google map, so i
> successfully solved this problem, but arise new proble ... how show
> all track at map center ... i see just one solution, in loop when i
> set path to polyline, calculate min and max lat-lng ... and then
> calculate center ... but i think its not very cool :) mybee api have
> solution for this problem ???

As you add each point to the polyline, use it to .exend a
LatLngBounds, when done call map.fitBounds with that bounds.

  -- Larry

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