0.1.1 • Published 4 years ago
ember-leaflet-gesture-handling v0.1.1
ember-leaflet-gesture-handling
This addon extends leaflet-gesture-handling and is a plugin for ember-leaflet.
Brings the basic functionality of Google Maps Gesture Handling into Leaflet. Prevents users from getting trapped on the map when scrolling a long page.
Installation
ember install ember-leaflet-gesture-handling
Usage
It will be enabled by default after installation.
Disabling or further reconfiguration can be done via the application configuration (config/environment.js).
ENV['leafletGestureHandling'] = {
enabled: true,
text: {
touch: "two fingers to move the map",
scroll: "ctrl + scroll to zoom the map",
scrollMac: "\u2318 + scroll to zoom the map"
},
duration: 1000,
}
Contributing
See the Contributing guide for details.
License
This project is licensed under the MIT License.