mirror of https://github.com/apache/superset.git
Corrected name of an area and fixed major grammatical errors (#6250)
This commit is contained in:
parent
c552c125d7
commit
0a701d6115
|
@ -1471,7 +1471,7 @@ List of Countries
|
|||
+-------+------------------------------+
|
||||
|GB-MRY | Moray |
|
||||
+-------+------------------------------+
|
||||
|GB-NAY | North Ayshire |
|
||||
|GB-NAY | North Ayrshire |
|
||||
+-------+------------------------------+
|
||||
|GB-NLK | North Lanarkshire |
|
||||
+-------+------------------------------+
|
||||
|
@ -1712,23 +1712,23 @@ List of Countries
|
|||
+------+------------------------------+
|
||||
|
||||
|
||||
You need to add a new Country ?
|
||||
Need to add a new Country?
|
||||
-------------------------------
|
||||
|
||||
To add a new country in country map tools, we need follow next steps :
|
||||
To add a new country in country map tools, we need to follow the following steps :
|
||||
|
||||
1. You need shapfiles why contains data of your map.
|
||||
You can get this file in this site : http://www.diva-gis.org/gdata
|
||||
1. You need shapefiles which contain data of your map.
|
||||
You can get this file on this site: http://www.diva-gis.org/gdata
|
||||
|
||||
2. You need to add ISO 3166-2 with column name ISO for all record in your file.
|
||||
It's important because, it's a norm for mapping your data with geojson file
|
||||
It's important because it's a norm for mapping your data with geojson file
|
||||
|
||||
3. You need to convert shapfile to geojson file.
|
||||
This action can make with ogr2ogr tools : http://www.gdal.org/ogr2ogr.html
|
||||
3. You need to convert shapefile to geojson file.
|
||||
This action can make with ogr2ogr tools: http://www.gdal.org/ogr2ogr.html
|
||||
|
||||
4. Put your geojson file in next folder : superset/assets/visualizations/countries with the next name : nameofyourcountries.geojson
|
||||
|
||||
5. You can to reduce size of geojson file ont this site : http://mapshaper.org/
|
||||
5. You can to reduce size of geojson file on this site: http://mapshaper.org/
|
||||
|
||||
6. Go in file superset/assets/javascripts/explorev2/stores/controls.jsx
|
||||
|
||||
|
|
Loading…
Reference in New Issue