You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use vue2-leaflet & vue-choropleth at the same time in two routes and I tested it with webpack. To use customised icon, I wrote this in main.js: import { L } from 'vue2-leaflet'; delete L.Icon.Default.prototype._getIconUrl; L.Icon.Default.mergeOptions({ iconRetinaUrl: require('./assets/hb_sd_logo.png'), iconUrl: require('./assets/hb_sd_logo.png'), // shadowUrl: require('./assets/marker-shadow.png'), iconSize: [18, 18], iconAnchor: [9,9] });
The icon can be shown locally and correctly with webpack.
However, when I was going to import vue-chororpleth by: import { InfoControl, ReferenceChart, ChoroplethLayer } from 'vue-choropleth' and add them to components, then the icons were all gone with error message.
If I take out the import of vue-choropleth then it works fine again. Do you know what the problem is here?
The text was updated successfully, but these errors were encountered:
Hi,
I want to use vue2-leaflet & vue-choropleth at the same time in two routes and I tested it with webpack. To use customised icon, I wrote this in main.js:
import { L } from 'vue2-leaflet'; delete L.Icon.Default.prototype._getIconUrl; L.Icon.Default.mergeOptions({ iconRetinaUrl: require('./assets/hb_sd_logo.png'), iconUrl: require('./assets/hb_sd_logo.png'), // shadowUrl: require('./assets/marker-shadow.png'), iconSize: [18, 18], iconAnchor: [9,9] });
The icon can be shown locally and correctly with webpack.
However, when I was going to import vue-chororpleth by:
import { InfoControl, ReferenceChart, ChoroplethLayer } from 'vue-choropleth'
and add them to components, then the icons were all gone with error message.If I take out the import of vue-choropleth then it works fine again. Do you know what the problem is here?
The text was updated successfully, but these errors were encountered: