Introduction

There will be more Documentation and Examples in the very near future. For now, read the code. Or create a issue.

Be aware that the API of this Plugin will change.

Requirement

Examples

There will be more examples in the very near future.

Usage

var arrowOptions = {
    distanceUnit: 'km',
    isWindDegree: true,
    stretchFactor: 1,
    popupContent: function(data) {
    return "<h3>" + data.title + "</h3>";
    },
    arrowheadLength: 0.8
    };

    var arrowData = {
    latlng: L.latLng(46.95, 7.4),
    degree: 77,
    distance: 10,
    title: "Demo"
    };

    var arrow = new L.Arrow(arrowData, arrowOptions);
    arrow.addTo(map);