Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.47 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.47 KB

ember-leaflet-gesture-handling

CI Status

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.