我正在使用这个例子:https://github.com/galex/android-mapviewballoons https://github.com/galex/android-mapviewballoons
My problem is that the clickable area is wider than the marker itself. For example, my Google Map marker is 25x25 then the clickable area would extend up to 70x70. This is a big problem for overlapping markers.
当我单击该箭头的尖端时,即使点击区域远离标记, onTap 也会被激活。
请帮我。谢谢。
这是默认行为ItemizedOverlay
。对于大多数人的手指来说,25x25 像素通常不是足够的可触摸区域。
你应该覆盖hitTest()
方法,如果您想修改覆盖项目命中的测试方式。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)