Created
April 30, 2013 19:11
-
-
Save maplinkapi/5491129 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setZoomCenter() { | |
function fitBoundsArray(points) { | |
var z = map.getZoomForPoints(points); | |
var b = LBS.Bounds.fromArray(points); | |
map.setZoom(z); | |
map.setCenter(b.getCenter()); | |
}; | |
fitBoundsArray(points); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment