leaflet-map icon indicating copy to clipboard operation
leaflet-map copied to clipboard

Fix error with default icon image path

Open tonimc opened this issue 8 years ago • 1 comments

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.

tonimc avatar Jan 19 '17 10:01 tonimc

This just saved me so much time; thank you!

fegan104 avatar Jan 20 '17 04:01 fegan104