Alexandr Sulimov
Alexandr Sulimov

Reputation: 1924

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 A-B-..-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?

Upvotes: 0

Views: 425

Answers (1)

Daniel Wong
Daniel Wong

Reputation: 157

Use PolyLine.

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

Upvotes: 1

Related Questions