Skip to content
This repository has been archived by the owner on Nov 30, 2018. It is now read-only.

DIfferent stroke color in a polyline #2024

Open
sagarora77 opened this issue Nov 14, 2017 · 1 comment
Open

DIfferent stroke color in a polyline #2024

sagarora77 opened this issue Nov 14, 2017 · 1 comment

Comments

@sagarora77
Copy link

Thanks for the amazing library. I am trying to implement a polyline with different stroke color based on event.

I want to implement the following with this library.
Fiddle

Any suggestions will be highly appreciated. Need your support community.

Version

2.3.3

@Aleempathan
Copy link

Aleempathan commented Feb 15, 2018

Better u can use agm polyline

<agm-polyline *ngFor="let value of list;let i = index;" [strokeOpacity]="0.5" [strokeWeight]="8" [zIndex]="" [strokeColor]="'green'">
<agm-polyline-point [latitude]="value.lat" [longitude]="value.lng">
<ng-container *ngIf="list[i+1]">
<agm-polyline-point [latitude]="list[i+1].lat" [longitude]="list[i+1].lng">

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants