startMoving {leaflet.extras2}R Documentation

Interact with the moving markers

Description

The marker begins its path or resumes if it is paused.

Usage

startMoving(map, layerId = NULL)

stopMoving(map, layerId = NULL)

pauseMoving(map, layerId = NULL)

resumeMoving(map, layerId = NULL)

addLatLngMoving(map, layerId = NULL, latlng, duration)

moveToMoving(map, layerId = NULL, latlng, duration)

addStationMoving(map, layerId = NULL, pointIndex, duration)

Arguments

map

The leafletProxy object

layerId

You can pass a string or a vector of strings for the moving markers that you want to address. If none is specified, the action will be applied to all moving markers.

latlng

Coordinates as list (e.g.: list(33, -67) or list(lng=-65, lat=33))

duration

Duration in milliseconds

pointIndex

Index of a certain point

Value

the new map object

Functions

References

https://github.com/ewoken/Leaflet.MovingMarker

See Also

Other MovingMarker Functions: addMovingMarker(), movingMarkerOptions()


[Package leaflet.extras2 version 1.2.2 Index]