简体   繁体   中英

How to get the list of coordinates (Lat, Long) of a poly-line drawn between drawn between two markers

实际上,我需要一个绘制线条的坐标列表,请在图片中详细提及

When drawing a PloyLine save it in a global variable , If there are multiple PolyLines save them in a list . Use method polyline.getPoints() on PolyLine variable it will give you the List<LatLng>

Edit: If you want multiple points just find the center point between two points check midpoint between two latitude and longitude

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM