0.0.1 • Published 5 years ago
leaflet-moving-rotated-marker v0.0.1
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);
0.0.1
5 years ago