Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tristen/leaflet-interact-intent

Interact with a map when a user intends it.
https://github.com/tristen/leaflet-interact-intent

Last synced: 6 days ago
JSON representation

Interact with a map when a user intends it.

Awesome Lists containing this project

README

        

## Interact intent: a plugin for Leaflet.

This plugin attempts to enable map interaction when a user wants to interacts
with a map. Page scrolling should work without unintentionaly zooming when a
map is reached on a page.

Want to see it in action? [Check out the demo](http://tristen.ca/leaflet-interact-intent/)

### Usage

``` html

var map = L.map('map');
new leafletInteractIntent().addTo(map)

```

### Options

You can also pass an option to trigger interaction on click.

``` js
var map = L.map('map');
new leafletInteractIntent({
clicktoplay: true
}).addTo(map)
```

### Building

npm install && make

__ProTip__ You may want to install `watch` so you can run `watch make`
without needing to execute make on every change.