Skip to content

Conversation

tonimc
Copy link
Contributor

@tonimc tonimc commented Jan 19, 2017

If you try to use leaflet-map inside a component, the component fails because leaflet is not able to get the default icon image path due to leaftlet-map suppose that you are imported the component main document.

Using polymer component method resolveUrl (https://www.polymer-project.org/1.0/docs/api/Polymer.Base#method-resolveUrl) you can get the URL of a component and use it to get the correct icon default URL.

…not imported in the DOM and is imported through the Shadow Dom of a component
@fegan104
Copy link

This just saved me so much time; thank you!

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.

2 participants