Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

feat(SebmGoogleMapMarker): custom icon support#224

Closed
sebholstein wants to merge 1 commit into
masterfrom
icon-url
Closed

feat(SebmGoogleMapMarker): custom icon support#224
sebholstein wants to merge 1 commit into
masterfrom
icon-url

Conversation

@sebholstein

Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants