Search code examples
androidzoomingandroid-mapviewmulti-touchosmdroid

two finger or pinc zoom to mapview in osmdroid



I need help

I'm trying to zoom to mapview by getting users multi touch points (firstly 2 finger touch) I know there is setMultiTouchControls() function but this is not what I want to do.

I tried to explain with a picture :) it was easier than writting;

The black bold arrows show the fingers' movement directions. The same situation can be considered for opposite directions.(zoom in)

osmdroid mapview multitouch


Solution

  • Finally, In osmdroid 3.0.10 this feature had been implemented.

    mapView.setBuiltInZoomControls(true);
    mapView.setMultiTouchControls(true);