diff --git a/source/Ox.Geo/Ox.Geo.js b/source/Ox.Geo/Ox.Geo.js index 414a3b2c..510c50ff 100644 --- a/source/Ox.Geo/Ox.Geo.js +++ b/source/Ox.Geo/Ox.Geo.js @@ -91,11 +91,11 @@ Ox.load.Geo = function(options, callback) { ]; > Ox.COUNTRIES.length - 353 + 354 > Ox.sum(Ox.test.array) - 353 + 354 > Ox.test.array - [196, 73, 9, 8, 28, 24, 14, 1] + [196, 73, 10, 8, 28, 24, 14, 1] @*/ Ox.COUNTRIES = data; diff --git a/tools/geo/jsonc/countries.jsonc b/tools/geo/jsonc/countries.jsonc index bb95695b..8305fca1 100644 --- a/tools/geo/jsonc/countries.jsonc +++ b/tools/geo/jsonc/countries.jsonc @@ -1,5 +1,5 @@ /* - 353 countries + 354 countries -- sovereign, dependent and disputed countries according to http://en.wikipedia.org/wiki/List_of_sovereign_states -- entities with country codes, according to @@ -47,6 +47,8 @@ "Mohéli": "KM-M", // http://en.wikipedia.org/wiki/ISO_3166-2:MD "Transnistria": "MD-SN", + // http://en.wikipedia.org/wiki/ISO_3166-2:ML + "Azawad": "ML-AZ", // none // http://en.wikipedia.org/wiki/ISO_3166-2:NG "Biafra": "NG-BI", // none // http://en.wikipedia.org/wiki/ISO_3166-2:NO @@ -125,11 +127,11 @@ "South Africa", "Swaziland", "Transkei", "Venda" ], "Western Africa": [ - "Ascension", "Benin", "Biafra", "Burkina Faso", "Cape Verde", - "Côte d'Ivoire", "Dahomey", "Gambia", "Ghana", "Guinea", - "Guinea-Bissau", "Liberia", "Mali", "Mauritania", "Niger", - "Nigeria", "Saint Helena, Ascension and Tristan da Cunha", "Senegal", "Sierra Leone", "Togo", - "Tristan da Cunha", "Upper Volta" + "Ascension", "Azawad", "Benin", "Biafra", "Burkina Faso", + "Cape Verde", "Côte d'Ivoire", "Dahomey", "Gambia", "Ghana", + "Guinea", "Guinea-Bissau", "Liberia", "Mali", "Mauritania", + "Niger", "Nigeria", "Saint Helena, Ascension and Tristan da Cunha", "Senegal", "Sierra Leone", + "Togo", "Tristan da Cunha", "Upper Volta" ] }, "Antarctica": { @@ -302,6 +304,7 @@ "Georgia": ["Abkhazia", "South Ossetia"], "Indonesia": ["East Timor"], "Iraq; Saudi Arabia": ["Neutral Zone"], + "Mali": ["Azawad"], "Moldova": ["Transnistria"], "Morocco": ["Sahrawi"], "New Hebrides": ["Tafea", "Tanna", "Vemerana"], @@ -361,7 +364,10 @@ "United Arab Republic": "Flag of Syria", // regexp fails "Panama Canal Zone": "Panama Canal Zone Flag.png", - "Rwenzururu": "Rwenzururu flag.png" + "Rwenzururu": "Rwenzururu flag.png", + // ... + "Azawad": "MNLA flag", + "Sealand": "Flag of Sealand" }, "flag_link": [ // these are dependent or dissolved countries that share their flag @@ -381,8 +387,10 @@ "Abu Dhabi": ["Abu Dhabi Region"], "Ajman": ["Ajman Region"], "Akrotiri and Dhekelia": ["Akrotiri, Cyprus", "Dhekelia, Cyprus"], + "Ashmore and Cartier Islands": ["Cartier Island"], + "Azawad": ["Gao Region, Mali", "Kidal Region, Mali", "Tombouctou Region, Mali"], "Biafra": ["Bayelsa, Nigeria", "Cross River, Nigeria", "Enugu, Nigeria"], - "Bonaire, Sint Eustatius and Saba": ["Bonaire", "Saba, Netherlands Antilles", "Sint Eustatius"], + "Bonaire, Sint Eustatius and Saba": ["Bonaire", "Saba Island", "Sint Eustatius"], "Bophuthatswana": ["Babelegi, South Africa", "Gaberone, Botswana", "Hotazel, South Africa", "Maseru, Lesotho"], // approximate "British Honduras": ["Belize"], "Byelorussian Soviet Socialist Republic": ["Belarus"], @@ -923,7 +931,9 @@ "The Bahamas": "Bahamas", "The Gambia": "Gambia", "Trust Territory of the Pacific Islands": "Pacific Islands", - "Yemen Arab Republic": "North Yemen" + "Yemen Arab Republic": "North Yemen", + // decode + "Gilgit–Baltistan": "Gilgit-Baltistan" }, "wikipedia": [ // http://en.wikipedia.org/wiki/ISO_3166-2:GB @@ -973,6 +983,8 @@ "Autonomous Region of Bougainville", "Chechen Republic of Ichkeria", "Mohéli", + // http://en.wikipedia.org/wiki/List_of_sovereign_states_in_the_2010s + "Azawad", // ... "Sealand", // http://en.wikipedia.org/wiki/Territorial_claims_in_Antarctica diff --git a/tools/geo/png/map.png b/tools/geo/png/map.png index 3462ad70..a29fd797 100644 Binary files a/tools/geo/png/map.png and b/tools/geo/png/map.png differ diff --git a/tools/geo/py/geo.py b/tools/geo/py/geo.py index 9a20add8..033f0a9c 100644 --- a/tools/geo/py/geo.py +++ b/tools/geo/py/geo.py @@ -149,11 +149,11 @@ def get_country_data(country): file = DATA['flag'][name] if DATA['flag'][name][-4:] == '.png' else DATA['flag'][name] + '.svg' country['flagURL'] = get_flag('File:' + file) else: - match = re.search('vertical-align:middle;?"( align="center")?>