4


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

Ismail Sahin
  • 2,640
  • 5
  • 31
  • 58
  • http://stackoverflow.com/questions/7583281/pinch-to-zoom-with-osmdroid/15159512#15159512 there is an example here but it not what I want to do – Ismail Sahin Mar 01 '13 at 14:03

1 Answers1

5

Finally, In osmdroid 3.0.10 this feature had been implemented.

mapView.setBuiltInZoomControls(true);
mapView.setMultiTouchControls(true);
I.G. Pascual
  • 5,818
  • 5
  • 42
  • 58
Ismail Sahin
  • 2,640
  • 5
  • 31
  • 58
  • 2
    You should write these: _mapView.setBuiltInZoomControls(true); _mapView.setMultiTouchControls(true); – SeyedPooya Soofbaf Nov 27 '13 at 04:48
  • thanks puya. actually in previous versions you have to do the same thing for enabling multitouch functionality but the issue I had was not about how to enabling, it is I think clear in the question. – Ismail Sahin Nov 27 '13 at 11:36