a plugin based on Leaflet
Switch branches/tags
Nothing to show
Clone or download
Latest commit e0901f3 Jan 19, 2018
Failed to load latest commit information.
examples Update mapstyle Jan 19, 2018
src Initial commit Jan 18, 2018
.gitattributes Initial commit Jan 18, 2018
LICENSE Initial commit Jan 18, 2018
README.md Update README.md Jan 18, 2018



Plugin for Leaflet to display the path and the direction of the marker

Check out the demo

Leaflet versions

The plugin is based on Leaflet 1.0.0 or above


// inite map
var map = L.map('map').setView([30.201479, 120.155908], 13);

// your data
var list = [ 
// iterate your data       
for(var i in list){
    var img = new Image();
    img.src = './images/arrow3.png';
    var options = {
        label: 'your label',
        labelFlag: labelFlag,
        labelColor: 'black',
        img: img
    // use angeMaker plugin
    var angleMarker = L.angleMarker(latlng, options);
    var angle = 0;
    // get angele between A(previousPoint) and B(nextPoint)
    angle = angleMarker.getAngle(previousLatLng, nextLanLng);
    // set angele A -> B


*label Text near the your marker
*labelFlag whethe to display the text
*labelColor The color of the text
*img Your custom maker

update history