简体   繁体   中英

android google maps api v2 set route and fix moving

I need draw route between multiple point (route) with red color. User moving with this route (i detect user location) and route change color to green.

I use android google api v2.

I crete route AB-..-Z with map.addPolyline(rectLine) red color.

User moved by this route and i need mark him path with green color if user moved by route.

What i can use from api?

Use PolyLine.

The route is usually drawn with PolyLine but you would only be able to make the segments separated by PolyLine vertices green.

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