angular-google-maps
angular-google-maps copied to clipboard
DIfferent stroke color in a polyline
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
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">