Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // tempory workaround for leaflet default marker icon break with webpack
- import L from 'leaflet';
- delete L.Icon.Default.prototype._getIconUrl;
- L.Icon.Default.mergeOptions({
- iconRetinaUrl: require('leaflet/dist/images/marker-icon-2x.png'),
- iconUrl: require('leaflet/dist/images/marker-icon.png'),
- shadowUrl: require('leaflet/dist/images/marker-shadow.png'),
- });
- /////////////////
Add Comment
Please, Sign In to add comment