leaflet-moving-rotated-marker

0.0.1 • Public • Published

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);

/leaflet-moving-rotated-marker/

    Package Sidebar

    Install

    npm i leaflet-moving-rotated-marker

    Weekly Downloads

    101

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    15.1 kB

    Total Files

    6

    Last publish

    Collaborators

    • luks87zg