2.0.0 • Published 7 years ago

leaflet-draw-straightlines v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Leaflet.draw.straightlines

Leaflet.draw plugin that allows you to draw straight lines

When using this plugin you can draw straight lines with Leaflet.draw by just pressing the ctrl or shift key.

install all dependencies

npm install

To compile the sources:

npm run compile

To use the plugin:

var map = L.map('map').setView([51.505, -0.09], 13);
map.initStraightLines();

Alternatively specify a function to start the straightlines functionality. For example with the shift key:

var map = L.map('map').setView([51.505, -0.09], 13);
map.initStraightLines({
    start: function (e) {
        return e.shiftKey;
    }
});
2.0.0

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.1

9 years ago