Last active
November 6, 2017 17:11
-
-
Save dfrho/db362678b18534f2f85aab4668d3788d to your computer and use it in GitHub Desktop.
flyToRun
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 flyToRun(currentFeature) { | |
map.flyTo({ | |
center: currentFeature.geometry.coordinates, | |
speed: 0.8, | |
curve: 1, | |
zoom: 16 | |
}); | |
} | |
function flyToBoro(view) { | |
map.flyTo({ | |
center: view.coordinates, | |
speed: 0.65, | |
curve: 1.3, | |
zoom: view.zoom | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment