Skip to content

Instantly share code, notes, and snippets.

@drecodeam
Created December 5, 2018 05:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drecodeam/af4c2c31d2c65c8f588c0b8b2cd8619d to your computer and use it in GitHub Desktop.
Save drecodeam/af4c2c31d2c65c8f588c0b8b2cd8619d to your computer and use it in GitHub Desktop.
# 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