Created
December 5, 2018 05:19
-
-
Save drecodeam/af4c2c31d2c65c8f588c0b8b2cd8619d 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
# Zoom in/ Zoom out with animation | |
moveMap = ( coordinates ) -> | |
mapInstance.flyTo({ | |
center: [ coordinates[1], coordinates[0]], | |
zoom: 16, | |
speed: 1, | |
curve: 1 | |
}) | |
moveMap( origin ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment