leaflet-moving-rotated-marker

js
Enables movement and rotation of marker icons in Leaflet
Version 0.0.1 License MIT
<script src=" https://cdn.jsdelivr.net/npm/leaflet-moving-rotated-marker@0.0.1/leaflet.movingRotatedMarker.min.js "></script>
Leaflet.MovingRotatedMarker
This plugin is combination of two plugins Leaflet.RotatedMarker and Leaflet.Marker.SlideTo
Enables movement and rotation of marker icons in Leaflet. Demo
Compatible with versions 0.7.* and 1.* of Leaflet. Doesn't work on IE < 9.
Usage
var m= L.marker([48.8631169, 2.3708919], {
rotationAngle: 45 // default rotation
}).addTo(map);
// move marker to new position and set rotation
m.slideTo([48.864433, 2.371324], {
duration: 3000,
rotationAngle: 65
});
// or just set rotation with method
m.setRotationAngle(65);