https://github.com/ekylibre/leaflet.controlpanel
https://github.com/ekylibre/leaflet.controlpanel
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ekylibre/leaflet.controlpanel
- Owner: ekylibre
- Created: 2017-11-01T09:26:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-03T09:38:39.000Z (almost 7 years ago)
- Last Synced: 2025-01-28T01:46:37.633Z (4 months ago)
- Language: CoffeeScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Leaflet.ControlPanel
This plugin extends Leaflet.Draw to provide a dedicated panel to toolbars.
It allows to display extended informations for each handler.
It also override default toolbar to render actions on the panel.Works with Leaflet 1.2.0 and Leaflet.Draw 0.4.12
## Usage
```
toolbar = L.CustomToolbaroptions:
position: 'bottomleft'
className: 'leaflet-control-controlPanel'
propertiesClassName: 'leaflet-control-controlPanel-properties'
actionsClassName: 'leaflet-control-controlPanel-actions'
expanded: truenew L.Control.ControlPanel toolbar, options
```
## Installation
Via NPM: ```npm install leaflet-controlpanel```Include ```dist/leaflet.controlpanel.js``` on your page.
Or, if using via CommonJS (Browerify, Webpack, etc.):
```
var L = require('leaflet')
require('leaflet-controlpanel')
```
## Development
This plugin is powered by webpack:* Use ```npm run watch``` to automatically rebuild while developing.
* Use ```npm test``` to run unit tests.
* Use ```npm run build``` to minify for production use, in the ```dist/```