Raruto / leaflet-elevation

Leaflet plugin that allows to add elevation profiles using d3js
GNU General Public License v3.0
255 stars 85 forks source link

Prepend default `__btnIcon` with currentScript url #214

Closed Raruto closed 2 years ago

Raruto commented 2 years ago

Close: https://github.com/Raruto/leaflet-elevation/issues/209

Raruto commented 2 years ago

@hupe13 can you confirm that this pull request does not change the current behavior? (the url of the downloaded svg file should be relative to the current location of the leaflet-elevation.js, that is: your local web server or alternatively unpkg.com)

hupe13 commented 2 years ago

I changed the line in my WordPress Plugin and logged the baseURL. It is correct and there is no error when calling a test page.