Open sgobotta opened 6 years ago
Current workaround is to override some css rules (since leaflet.css import with webpack attemps to override most of the custom leaflet map css rules) like this:
img.leaflet-marker-icon {
content: url($media-path + 'maps/marker-icon.png') !important;
}
This is working fine in Chrome
Firefox aproach would be
img.leaflet-marker-icon::after {
content: url($media-path + 'maps/marker-icon.png') !important;
}
Webpack is used to compile the dev and prod environment. For some reason the marker asset is not assigned properly:
The img source should not have the ")marker-icon.png declaration