Ah fitBounds() is what I was looking for. Thanks Gary. A new issue with that though... The two coordinates I am trying to fit are random. How do I determine their relation to one another? In order for LatLngBounds to work I need to know which is SW and which is NE. Then I can put them in the correct order.
fitBounds(bounds:LatLngBounds) LatLngBounds(sw?:LatLng, ne?:LatLng) On Nov 14, 7:25 pm, Gary Little <[email protected]> wrote: > You can use the V3 map's fitBounds method to do this. > > Gary > > On Nov 14, 11:52 am, GG <[email protected]> wrote: > > > I need to dynamically adjust the zoom level to make sure all markers > > are visible on the map. > > Can this be done in v3? > > > Similar to this but using v3: > > http://econym.org.uk/gmap/basic14.htm -- 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=.
