Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/tristen/leaflet-interact-intent
- Owner: tristen
- License: unlicense
- Created: 2013-11-22T20:35:06.000Z (about 11 years ago)
- Default Branch: gh-pages
- Last Pushed: 2013-12-01T17:36:30.000Z (about 11 years ago)
- Last Synced: 2024-12-26T05:24:56.940Z (18 days ago)
- Language: JavaScript
- Homepage: http://tristen.ca/leaflet-interact-intent/
- Size: 125 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.