two finger or pinc zoom to mapview in osmdroid

2019-04-10 13:17发布


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

1条回答
神经病院院长
2楼-- · 2019-04-10 13:57

Finally, In osmdroid 3.0.10 this feature had been implemented.

mapView.setBuiltInZoomControls(true);
mapView.setMultiTouchControls(true);
查看更多
登录 后发表回答