One way of doing it: var mybounds = new GLatLngBounds(); mybounds.extend(marker1.getLatLng()); mybounds.extend(marker2.getLatLng());
mymap.setCenter(mybounds.getCenter(), desired zoomlevel); --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
