Combined marker with a circle below component plugin for Leaflet that behaves as a L.marker.
Usage
optionsclassName = 'string' // for the diviconoptionsdraggable = boolean // allow/dissallow draggableoptionspopup = LPopup // set a popup that gets open on marker clickoptions* = Lcircle options // the rest of the options are for the L.circle // creationvar ecm = Lecm // APIecm ecmecm ecmecm ecmecm // eventsecmecm // event data = { oldLatLng: L.latlng, latlng: L.latlng }ecm
Installation
- via NPM:
npm install leaflet-editablecirclemarker
- via yarn:
yarn add leaflet-editablecirclemarker
Include dist/editablecirclemarker.js
on your page after Leaflet:
Or, if using via CommonJS (Browserify, Webpack, etc.):
var L =
Development
This project uses webpack to build the JavaScript and standard for code style linting.
- While developing, use
npm run watch
to automatically rebuild when files are saved - Use
npm test
to run unit tests and code style linter - Before committing
dist/
, usenpm run build
to optimize and minify for production use