我想点击一个谷歌地图V2的Android地图上的点。如果点击的点上相交的折线路径的一个点,然后显示折线。我没有看到在Android的折线任何记录可点击的事件。我试图扩展当前折线对象(标记为最终)
I would like to click a spot on a Google maps v2 android map. If the clicked point intersects a point on a polyline path, then display the polyline. I do not see any documented clickable events for polylines in android. I tried to extend the current Polyline object (marked final)
还有什么其他选择呢我?
What other options do I have?
注册的 OnMapClickListener
。确定给定的点击就在你行你自己。如果是这样,做什么是你想做的事在这种情况下。
Register an OnMapClickListener
. Determine if a given click is on your line yourself. If it is, do whatever it was you wanted to do in this case.