Skip to content

Instantly share code, notes, and snippets.

@martron
Created September 24, 2013 18:56
Show Gist options
  • Save martron/6689538 to your computer and use it in GitHub Desktop.
Save martron/6689538 to your computer and use it in GitHub Desktop.
bounds = new google.maps.LatLngBounds()
for marker in @markers
bounds.extend(marker.getPosition())
@map.fitBounds(bounds)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment