sebholstein / angular-google-maps

Angular 2+ Google Maps Components
https://angular-maps.com/
MIT License
2.03k stars 817 forks source link

iconUrl is not working #372

Closed Sireini closed 8 years ago

Sireini commented 8 years ago

Hi there I want to use the iconUrl but it seems not to work! I use it like this: <sebm-google-map-marker *ngFor="#location of locations" [latitude]="location.lat" [longitude]="location.lng" [iconUrl]="https://cdn2.iconfinder.com/data/icons/picons-essentials/71/location-512.png" [label]="location.id">

where it keeps throwing me this error: EXCEPTION: Quotes are not supported for evaluation!

EXCEPTION: Error: Uncaught (in promise): Quotes are not supported for evaluation!

born2net commented 8 years ago

try

[iconUrl]="'https://cdn2.iconfinder.com/data/icons/picons-essentials/71/location-512.png'"

extra quotes to not eval as arg

Sireini commented 8 years ago

@born2net Thank you man! Is it also possible to change the size of the icons?

born2net commented 8 years ago

that I am not sure...