D
D
Dima_kras2014-08-08 06:04:32
JavaScript
Dima_kras, 2014-08-08 06:04:32

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

2 answer(s)
P
Push Pull, 2014-08-08
@Dima_kras

Are you sure you checked? My "two-finger" zoom works fine.
Did you look inside the leaflet? There is a handling of these events

K
Konstantin Kitmanov, 2014-08-08
@k12th

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 question

Ask a Question

731 491 924 answers to any question