component.html:
<google-map (mapClick)="click($event)"
[center]="center" [options]="options" height="500px" width="100%"
[zoom]="zoom">
<map-marker (mapClick)="openInfoWindow(marker)" [clickable]="true"
*ngFor="let marker of markers" [position]="marker.position" [label]="marker.label"
[title]="marker.title" [options]="marker.options">
</map-marker>
<map-info-window>Info Window content</map-info-window>
</google-map>
component.ts:
options: google.maps.MapOptions = {
zoomControl: true,
scrollwheel: false,
disableDoubleClickZoom: true,
maxZoom: 15,
minZoom: 8,
}
I've tried adding icon property with url value in options, passing input in map-marker but none worked
https://github.com/angular/components/tree/master/src/google-maps#readme