daily pastebin goal
12%
SHARE
TWEET

Untitled

a guest May 16th, 2018 116 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. /////////////////
RAW Paste Data
Top