Just a marker that can drift its way to a new position, to use with leaflet, and base on Typescript for react,vue...
npm install leaflet-drift-marker

| Support | Tested | |
| --------- | ------ | ------- |
| leaflet | 1.5.1 | ☑ |
A plugin for leaflet in Typescript to use on react,vue... that allows a marker to move smoothly instead of jump to a new position. Reworked to typescript from Leaflet.Marker.SlideTo!
``bash`
npm install --save leaflet-drift-marker
leaflet-drift-marker requires only leaflet as peerDependency
`bash`
npm install --save leaflet

You can get the build file DriftMarker.js from releases or :
`html`
Still supports all existing leaflet marker properties check marker
This plugin implements two new methods:
- .slideTo(latlng, slideOptions)latlng
- : LeafletLatLng , requiredslideOptions
- : Object , requiredduration
- : number , requiredkeepAtCenter
- : Boolean , optional.slideCancel()
-
#### DriftMarker (with leaflet)
`javascript
import DriftMarker from "leaflet-drift-marker";
//var DriftMarker=require("leaflet-drift-marker")
const marker = new DriftMarker([10, 10]);
marker.slideTo([20, 20], {
duration: 2000,
keepAtCenter: true,
});
``
MIT License