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

Fix error with default icon image path #84

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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