Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(SebmGoogleMapMarker): custom icon support #224

Closed
wants to merge 1 commit into from
Closed

Conversation

sebholstein
Copy link
Owner

No description provided.

You can define a custom via a custom URL like this:

```
<sebm-google-map-marker [iconUrl]="http://example.com/icon.png">
</sebm-google-map-marker>
```

Closes #123
@alanfagner
Copy link

Hello I'm hum problem in Adicionar the icon , I am doing so .<sebm-google-map-marker [iconUrl]="../../img/bar.png" [latitude]="lat + 1" [longitude]="lng" >

I get this error


5     478914   error    EXCEPTION: Template parse errors:
Parser Error: Unexpected token . at column 1 in [../../img/bar.png] in EventoMap@12:30 ("
      [zoom]='zoom'
      [disableDefaultUI]='false'>    
      <sebm-google-map-marker [ERROR ->][iconUrl]="../../img/bar.png" [latitude]="lat + 1" [longitude]="lng" [label]="'testeM'" >
           "): EventoMap@12:30
6     478915   error    STACKTRACE:
7     478916   error    BaseException@http://192.168.25.45:8100/build/js/app.bundle.js:7708:33

@sebholstein
Copy link
Owner Author

@alanfagner change to this and it will work:

<sebm-google-map-marker [iconUrl]="'../../img/bar.png'" [latitude]="lat + 1" [longitude]="lng">
</sebm-google-map-marker>

@alanfagner
Copy link

Thank you friend, now worked.
And once again congratulations for his work in the plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants