two finger or pinc zoom to mapview in osmdroid
Asked Answered
Q

1

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

Qualm answered 1/3, 2013 at 14:1 Comment(1)
https://mcmap.net/q/843158/-pinch-to-zoom-with-osmdroid/… there is an example here but it not what I want to doQualm
Q
5

Finally, In osmdroid 3.0.10 this feature had been implemented.

mapView.setBuiltInZoomControls(true);
mapView.setMultiTouchControls(true);
Qualm answered 6/11, 2013 at 8:46 Comment(2)
You should write these: _mapView.setBuiltInZoomControls(true); _mapView.setMultiTouchControls(true);Maple
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.Qualm

© 2022 - 2024 — McMap. All rights reserved.