Skip to content

Instantly share code, notes, and snippets.

@dfrho
Last active November 6, 2017 17:11
Show Gist options
  • Save dfrho/db362678b18534f2f85aab4668d3788d to your computer and use it in GitHub Desktop.
Save dfrho/db362678b18534f2f85aab4668d3788d to your computer and use it in GitHub Desktop.
flyToRun
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