diff --git a/dist/leaflet.css b/dist/leaflet.css index 9c7e2d11..f9c501ff 100644 --- a/dist/leaflet.css +++ b/dist/leaflet.css @@ -376,7 +376,7 @@ /* Default icon URLs */ .leaflet-default-icon-path { - background-image: url(images/); + background-image: url(images/marker-icon.png); } diff --git a/src/layer/marker/Icon.Default.js b/src/layer/marker/Icon.Default.js index 56139695..cb365635 100644 --- a/src/layer/marker/Icon.Default.js +++ b/src/layer/marker/Icon.Default.js @@ -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[\"\']?\)$/, '') : ''; } });