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.
ember install ember-leaflet-gesture-handling
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,
}
See the Contributing guide for details.
This project is licensed under the MIT License.