S
S
sdgroup142018-03-07 12:55:59
Angular
sdgroup14, 2018-03-07 12:55:59

How to implement custom markers amg Angular 2+(google maps)?

Basically, there is something I don't understand at all. Imported amg module. I put a map in the component ... everything works as it should, both the paths and the usual points, but I did not find the docks on how to customize this google marker

<agm-marker  *ngFor="let marker of markers"  [latitude]="marker.coordinates.lat" [longitude]="marker.coordinates.lon"  [iconUrl]="false"></agm-marker>

I need to basically cancel their icon and just make the 20x20 circle white and have 1 more 10x10 circle in it and its color is taken from jason. For example:
<agm-marker  *ngFor="let marker of markers"  [latitude]="marker.coordinates.lat" [longitude]="marker.coordinates.lon" style="border: 5px solid white" [style.backgroundColor]= "'#'+ marker.marker_bg"></agm-marker>

But I can't even figure out why the styles don't go through... they just don't get applied and I can't even cancel the iconUrl...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question