Skip to content
This repository was archived by the owner on Apr 3, 2026. It is now read-only.
This repository was archived by the owner on Apr 3, 2026. It is now read-only.

Changing Color of Way points. #96

Description

@Hokino

Suppose I have an Origin of A and Destination of D with a way point of B and C.

Is it possible to change the stroke color of the waypoint section of the agm-direction.

Something like:
waypoints: [
{
icon: 'your-icon-url',
label: 'marker label',
opacity: 0.8,
polylineOptions: {
strokeColor: '0080ff',
strokeWeight: 6,
strokeOpacity: 0.55
}
},
],

For example could I have :
A -> B (default blue)
B -> C (red)
C -> D (default blue)

I have tried to do multiple directions so that each of the above routes (a -> b, b -> c, c -> d) are its own direction and setting the strokeColor in the renderOptions. But then the markers are not automatically showing as a,b,c,d. Rather they are showing up like this.

image

Please tell me if such a functionality already exists.

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featuredSpecially important new features or corrections.

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions