Set Language locale for gesture handling
-
Is there a way to set the gesture handling options?
Looking to set a different language for the warning message as per the example here: https://github.com/Raruto/leaflet-gesture-handling/blob/master/examples/leaflet-gesture-handling.html
Locale is one of the options what can be set:
gestureHandlingOptions: { // OPTIONAL
// text: {
// touch: “Hey bro, use two fingers to move the map”,
// scroll: “Hey bro, use ctrl + scroll to zoom the map”,
// scrollMac: “Hey bro, use \u2318 + scroll to zoom the map”
// },
// locale: ‘en’, // set language of the warning message.
// duration: 5000 // set time in ms before the message should disappear.
}You help is much appreciated
- The topic ‘Set Language locale for gesture handling’ is closed to new replies.