0

我想在我触摸的两个点之间在谷歌地图上画一条线,例如,如果我触摸两个点 p0,p1,那么应该在地图上的这两个点之间画一条线

4

1 回答 1

1

Follow this steps:

  • Create a class extending Overlay
  • Override ontouch() and save the geopoints taped
  • Override onDraw() to convert geopoints above to screen
    coordinates using Projection() and use canvas.drawLine() to draw a line between both points

good luck.

于 2012-10-11T20:29:34.493 回答