From 543cadf240618eb8f3dcd9ac4431eb1454f6923f Mon Sep 17 00:00:00 2001 From: bozdoz Date: Tue, 24 Mar 2020 15:57:26 -0300 Subject: [PATCH] Add methods for adding handler to existing map 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 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6ef3f60..f33be68 100644 --- a/README.md +++ b/README.md @@ -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: