Drawing a line/path on Google Maps

后端 未结 13 1026
执笔经年
执笔经年 2020-11-22 05:23

I\'ve been busy for a long time finding out how to draw a line between two (GPS) points on the map in HelloMapView but with no luck.

Could anyone please tell me how

13条回答
  •  无人共我
    2020-11-22 05:24

    This worked for me. With the method mentioned here I was able to draw polylines on Google Maps V2. I drew a new line whenever the user location got changed, so the the polyline looks like the path followed by user on map.

    Source code at. Github: prasang7/eTaxi-Meter

    Please ignore other modules of this project related to distance calculation and User Interface if you are not interested in them.

提交回复
热议问题