-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Cannot add new country to CountryMap chart #8819
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
I needed to add a map and this was the only working way that I found. It would be possible to have a way to add a new map instead of building it from source? There is some workaround? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue |
I just submitted a PR to update the docs for this: #10621 based on this comment and successfully going through the process. Hopefully it will be merged and save others the trouble that I've had to go through to get this working! |
I was trying add new country following to https://superset.apache.org/visualization.html#need-to-add-a-new-country, however it doesn't work - new country is visable in dropdown, but when I click on it, map is blank.
Expected results
Can display new added map from .geojson
Actual results
I get 404 when I click new country on dropdown map is fetching:
Other (default) maps works properly:
I was able to resolve this issue by editing
assets/node_modules/@superset-ui/legacy-plugin-chart-country-map/countries.js
and add.geojson
file to this directory. So it means that maps are fetched from npm package?How to reproduce the bug
https://superset.apache.org/visualization.html#need-to-add-a-new-country
Environment
0.999.0dev
Python 3.7.5
v12.12.0
6.11.3
I built superset from source.
The text was updated successfully, but these errors were encountered: