Skip to content

Instantly share code, notes, and snippets.

@drecodeam
Last active December 4, 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/74ec23730e650c57cb43087dfda98e7e to your computer and use it in GitHub Desktop.
Save drecodeam/74ec23730e650c57cb43087dfda98e7e to your computer and use it in GitHub Desktop.
# Add pulse
addPulse = ( coordinates, design_component ) ->
heartbeatMarker = addMarker( coordinates, design_component )
heartbeatMarker.element.animate
size: 70
opacity: 0
backgroundColor: "#D9497D"
options:
time: 2
curve: Bezier.easeInOut
delay: 0
repeat: Infinity
heartbeatMarker.setLngLat( [origin[1], origin[0]] )
return heartbeatMarker
pulseMarker = addPulse( origin, heartbeat )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment