Osmdroid掐 [英] Osmdroid and Pinch
问题描述
我正在开发使用osmdroid(3.0.8)的应用程序。
当我放大用两个手指进出,变焦开始从地图的中心,而不是从两个手指中间(使用 MapView.setMultiTouchControls(真);
)。我一直在努力,实现捏(<一href="http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2-part-6-implementing-the-pinch-zoom-gesture/1847"相对=nofollow>捏),但坏的结果。
我读过其他类似的问题,但没有找到一个很好的解决方案。
I'm developing an app using osmdroid (3.0.8).
When I zoom using two fingers in and out, the zoom starts from the center of the map, not from the middle of the two fingers (using MapView.setMultiTouchControls(true);
). I've tried to implement the pinch (pinch) but with bad results.
I've read other similar questions but without finding a good solution.
注:我必须使用OSM,并没有其他的解决方案。
Note: I MUST use OSM, and not other solutions
推荐答案
Osmdroid 3.0.10包括缩放你在捏位置的支持。
Osmdroid 3.0.10 includes support for zooming at the location you pinched at.
样品还包括双指旋转手势叠加,如果这是你有兴趣尝试。
The samples also include a two-finger rotation gesture overlay if that is something you are interested in trying.
这篇关于Osmdroid掐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!