aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 03a1435b1ac7131806e9677966d2cc645f74baac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Leaflet Indoor
=====================

Provides basic tools to create indoor maps with
[Leaflet](http://leafletjs.com).

## Using the plugin

See the included examples for usage.

### Basic Usage

Create a L.IndoorLayer, then add the data to it.

```javascript
var indoorLayer = new L.IndoorLayer();

var levelControl = new L.Control.Level()

// Connect the level control to the indoor layer
levelControl.addEventListener("levelchange", indoorLayer.setLevel, indoorLayer);
```

## Events

L.Control.Level will fire levelchange events when a level is selected.

## License

Leaflet Indoor is free software, and may be redistributed under the
MIT-LICENSE.