Trouble adding Argentina geojson to country map legacy plugin #18268
Replies: 10 comments
|
Here is the geojson file https://gist.github.com/aguspina/570fe8c52bb9628f38618ad9b037f4e7 |
|
@aguspina can you provide detailed steps to reproduce this issue? thanks! |
|
Of course :) I added this line to the countries.js import argentina from 'file-loader!./countries/argentina.geojson';The argentina.geojson file into the countries folder and added argentina to the choices in the controlPanel.ts file label: t('Country Name'),
default: 'France',
choices: [
'Argentina',And I had to change the package json in superset-frontend to ponint to my local fork of superset-ui plugins |
|
@aguspina thanks for the details. @mayurnewase do you mind taking a look this issue? 🙏 |
|
I think the file is in a different format, I found this pr fixes Bulgaria map, which suffers from a similar issue. |
|
Please test this geoJson https://gist.github.com/djok/b53cbbb4f76ecaa8499fdafbc1cac040 I used mapshaper.org to simplify and fix overlapping |
|
Hi @djok thanks for your help. I think the geojson you shared to me is malformed, it is duplicated and truncated. |
I have exactly the similar issue with Afghanistan geojson file. |
|
I was testing country map with some addiotional geojsons. I found out that in somecases center point was calculated wrong. There is an discussion about it at d3/d3#1883 |
|
Anyone else solved this issue? I'm facing a similar problem |
Uh oh!
There was an error while loading. Please reload this page.
I connected superset with a local modify version of the superset-ui plugin legacy-country map but I got this viz:
I'm the the right geojson generated from the file downloaded from https://www.diva-gis.org/gdata with de ISO column updated to follow de ISO 3166-2 standard.
If someone help me solve this, I will make the corresponding PR!
All reactions