two finger or pinc zoom to mapview in osmdroid

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-21 17:42:38

问题



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)


回答1:


Finally, In osmdroid 3.0.10 this feature had been implemented.

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


来源:https://stackoverflow.com/questions/15159544/two-finger-or-pinc-zoom-to-mapview-in-osmdroid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!