Fix webpack using valid image file for default icon path (#4849) (#4979)

This commit is contained in:
Jeff Barnes 2016-09-30 02:11:52 -08:00 committed by Vladimir Agafonkin
parent 6b0808d6f0
commit 837d190933
2 changed files with 2 additions and 2 deletions

2
dist/leaflet.css vendored
View File

@ -376,7 +376,7 @@
/* Default icon URLs */
.leaflet-default-icon-path {
background-image: url(images/);
background-image: url(images/marker-icon.png);
}

View File

@ -44,6 +44,6 @@ L.Icon.Default = L.Icon.extend({
document.body.removeChild(el);
return path.indexOf('url') === 0 ?
path.replace(/^url\([\"\']?/, '').replace(/[\"\']?\)$/, '') : '';
path.replace(/^url\([\"\']?/, '').replace(/marker-icon\.png[\"\']?\)$/, '') : '';
}
});