daily pastebin goal
82%
SHARE
TWEET

Untitled

a guest May 16th, 2018 118 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top