Guest User

Untitled

a guest
May 16th, 2018
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. // tempory workaround for leaflet default marker icon break with webpack
  2. import L from 'leaflet';
  3. delete L.Icon.Default.prototype._getIconUrl;
  4.  
  5. L.Icon.Default.mergeOptions({
  6. iconRetinaUrl: require('leaflet/dist/images/marker-icon-2x.png'),
  7. iconUrl: require('leaflet/dist/images/marker-icon.png'),
  8. shadowUrl: require('leaflet/dist/images/marker-shadow.png'),
  9. });
  10. /////////////////
Add Comment
Please, Sign In to add comment