Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Osmdroid and Pinch

I'm developing an app using osmdroid (3.0.8). When I zoom using two fingers in and out, the zoom starts from the center of the map, not from the middle of the two fingers (using MapView.setMultiTouchControls(true);). I've tried to implement the pinch (pinch) but with bad results. I've read other similar questions but without finding a good solution.

Note: I MUST use OSM, and not other solutions

like image 509
Massimo Variolo Avatar asked Nov 04 '22 01:11

Massimo Variolo


1 Answers

Osmdroid 3.0.10 includes support for zooming at the location you pinched at.

The samples also include a two-finger rotation gesture overlay if that is something you are interested in trying.

like image 122
kurtzmarc Avatar answered Nov 17 '22 22:11

kurtzmarc