Answer the question
In order to leave comments, you need to log in
How to make zoom with two fingers on tablet in leafletjs map?
I choose the library on which to make a map. The choice fell on leaflet, I like everything, it has the necessary functions.
But one of the tasks is to zoom on the tablet with two fingers.
Looked at the example at leafletjs.com leafletjs.com/examples/mobile-example.html
Two finger zoom doesn't work.
Is it possible to zoom with two fingers on a leaflet? Tell me how?
Answer the question
In order to leave comments, you need to log in
Are you sure you checked? My "two-finger" zoom works fine.
Did you look inside the leaflet? There is a handling of these events
Use any lib (like hammer ) to support gestures (or write your own).
On pinch-zoom, tell leaflet to zoom-in or zoom-out.
PROFIT!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question