# leaflet-select

> Leaflet dropdown plugin

Latest version **1.0.5** (published 2016-10-05) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install leaflet-select
pnpm add leaflet-select
yarn add leaflet-select
bun add leaflet-select
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2016-10-05 |
| First published | 2016-10-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Thiago Novaes |
| Maintainers | tbnovaes |

## Links

- npm: https://www.npmjs.com/package/leaflet-select
- Repository: https://github.com/tbnovaes/Leaflet.select
- Homepage: https://github.com/tbnovaes/Leaflet.select#readme
- Issues: https://github.com/tbnovaes/Leaflet.select/issues
- npm.io page: https://npm.io/package/leaflet-select

## Recent versions

- 1.0.5 (latest) — 2016-10-05
- 1.0.4 — 2016-10-04
- 1.0.3 — 2016-10-04
- 1.0.2 — 2016-10-04
- 1.0.1 — 2016-10-03
- 1.0.0 — 2016-10-03

## README

Leaflet Select
===================

Leaflet Select is an easy-to-configure transparent dropdown plugin for leaflet.

Demo: [click here](http://tbnovaes.com/demo/leaflet-select/)

----------

> **Requirements:**
> 
> - jQuery
> - Leaflet
> - FontAwesome

----------

**Installation:**

*via npm:*

    npm install leaflet-select --save

*old fashioned way:*
	
	download the repository and add the files inside src folder to your project.

----------

**Use:**

    var select = L.control.select({
		               label: 'Select',
		               data : [{title: String, ...}],
		               selected : function(item) {
		    	           @required
		    	           //callback when item is selected  
		               },
		               opened: function() {
		    		       @optional
		    	           //callback when dropdown opens
		               },
		               closed: function() {
		    	           @optional
		    	           //callback when dropdown closes
		               }
		           });
    
    select.addTo(map);

---
_Source: https://npm.io/package/leaflet-select · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
