0.1.6 • Published 6 years ago

leaflet-editable-marker v0.1.6

Weekly downloads
10
License
ISC
Repository
github
Last release
6 years ago

leaflet.editableMarker

==================

Leaflet EditableMarker is a Leaflet plugin which allows to tarnsform size and angle of Markers interactively. Forked from great plugin Leaflet.orientedmarker by Alexandre DAVID

Warning: needs window.requestAnimationFrame

Demo

Simple example

Installation

npm install leaflet-editable-marker

Simple example

This example adds marker and turns on transformation mode:

L.editableMarker([45.801104, 4.775398], {
    angle: 45,
    percent: 150
}).addTo(map).activateTransformation();

Methods

activateTransformation()

Activates transformation mode

finishTransformation()

Exit transformation mode (finish editing with saved changes)

setAngle(angle)

Set angle in deg, number

setPercent(percent)

Set size percentage, number

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago