Skip to content

Commit

Permalink
Add methods for adding handler to existing map
Browse files Browse the repository at this point in the history
from leaflet docs: https://leafletjs.com/examples/extending/extending-3-controls.html

And to help some people who are trying to use the plugin on WordPress:  https://wordpress.org/support/topic/gesture-handling-2/#post-12579628
  • Loading branch information
bozdoz authored Mar 24, 2020
1 parent 6256797 commit 543cadf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ var map = L.map("map", {
});
```

Or you can enable and disable this dynamically on an existing map with `map.gestureHandling.enable()` and `map.gestureHandling.disable()`.

### Use as a module

If you are using a bundler such as Webpack or Parcel, you can load the library as a module. First install the module with:
Expand Down

0 comments on commit 543cadf

Please sign in to comment.