Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

jdomingu/Leaflet.SimpleMarkers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Leaflet.SimpleMarkers

A light-weight Leaflet plugin for adding and deleting markers.

###Demo

http://jdomingu.github.io/Leaflet.SimpleMarkers/

###Instructions

To create the marker controls, enter the following code:

var marker_controls = new L.Control.SimpleMarkers();
map.addControl(marker_controls);

###Available Options

add_control: Show the add marker button should be shown. Possible values: true, false. Default: true. delete_control: Show the delete marker button should be shown. Possible values: true, false. Default: true. allow_popup: Create and bind a popup for each marker. Possible values: true, false. Default: true. marker_icon: Use a custom icon instance. If not given, the default Leaflet icon will be shown. Possible values: Leaflet icon instance, undefined. Default: undefined. marker_draggable: Allow dragging of markers. Possible values: true, false. Default: false. add_marker_callback: Run a callback function with the marker instance as argument. Possible values: Callback function, undefined. Default: undefined.

About

A light-weight Leaflet plugin for adding and deleting markers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published