I need help with changing the color of a single marker on my map. I have a total of 5 markers displayed, but I want to customize the color of just one of them. I am using angular google maps and struggling to figure out how to achieve this.
So far, I have tried using the [iconUrl] parameter to change the marker colors, but it ends up altering all of them instead of just the one I want to modify.
Here is the HTML code snippet:
<agm-map [latitude]="lat" [longitude]="lng" [fitBounds]="true" >
<agm-marker [iconUrl]="iconUrl" *ngFor="let data of map_dev" [latitude]="data.latitude" [longitude]="data.longitude"
[agmFitBounds]="true" (markerClick)="markerdata(data)" >
</agm-marker>
</agm-map>