Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with marker icon #8

Open
huaishen opened this issue Dec 14, 2018 · 1 comment
Open

Problem with marker icon #8

huaishen opened this issue Dec 14, 2018 · 1 comment

Comments

@huaishen
Copy link

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.
image

If I take out the import of vue-choropleth then it works fine again. Do you know what the problem is here?

@voluntadpear
Copy link
Owner

I couldn't reproduce the issue reported. Can you try again with v0.3.1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants