angular-google-maps icon indicating copy to clipboard operation
angular-google-maps copied to clipboard

DIfferent stroke color in a polyline

Open sagarora77 opened this issue 6 years ago • 1 comments

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

sagarora77 avatar Nov 14 '17 07:11 sagarora77

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">

Aleempathan avatar Feb 15 '18 06:02 Aleempathan