Skip to content

yarsky-tgz/leaflet.editableMarker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Leaflet plugin for dynamic marker resizing, rotating

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%