diff --git a/dist/samples/dds-region-viewer/app/index.html b/dist/samples/dds-region-viewer/app/index.html index 80bc6cd7f4..9271de2c15 100644 --- a/dist/samples/dds-region-viewer/app/index.html +++ b/dist/samples/dds-region-viewer/app/index.html @@ -23,10 +23,11 @@
@@ -79,7 +83,7 @@ for more information. --> diff --git a/dist/samples/dds-region-viewer/app/index.ts b/dist/samples/dds-region-viewer/app/index.ts index 4af2182d4b..201dc47f08 100644 --- a/dist/samples/dds-region-viewer/app/index.ts +++ b/dist/samples/dds-region-viewer/app/index.ts @@ -26,6 +26,7 @@ let admin1Layer; let admin2Layer; let localityLayer; let postalCodeLayer; +let schoolDistrictLayer; let selectedPlaceId: string; @@ -84,11 +85,14 @@ function initMap() { featureMenu.selectedIndex = 2; break; case 'locality': - featureMenu.selectedIndex = 3; + featureMenu.selectedIndex = 3; break; case 'postal_code': featureMenu.selectedIndex = 4; break; + case 'school_district': + featureMenu.selectedIndex = 5; + break; default: break; } @@ -108,6 +112,8 @@ function initMap() { localityLayer = map.getFeatureLayer('LOCALITY'); //@ts-ignore postalCodeLayer = map.getFeatureLayer('POSTAL_CODE'); + //@ts-ignore + schoolDistrictLayer = map.getFeatureLayer('SCHOOL_DISTRICT'); // Add event listeners for feature layers. countryLayer.addListener('click', handlePlaceClick); @@ -115,9 +121,10 @@ function initMap() { admin2Layer.addListener('click', handlePlaceClick); localityLayer.addListener('click', handlePlaceClick); postalCodeLayer.addListener('click', handlePlaceClick); + schoolDistrictLayer.addListener('click', handlePlaceClick); // List of all the layers when they get initialized. - allLayers = [countryLayer, admin1Layer, admin2Layer, localityLayer, postalCodeLayer]; + allLayers = [countryLayer, admin1Layer, admin2Layer, localityLayer, postalCodeLayer, schoolDistrictLayer]; // Init map styles. applyStyle(); @@ -125,6 +132,7 @@ function initMap() { // Set up country and feature menus. buildMenu(); onCountrySelected(); + featureMenu.selectedIndex = 1; } // Restyle and make a request when the feature type is changed. @@ -140,7 +148,7 @@ function featureTypeChanged() { revertStyles(); selectedPlaceId = ''; - contentDiv.innerHTML = ''; + contentDiv.innerHTML = ''; // Apply the style to the selected feature layer. switch (featureMenu.value) { @@ -159,6 +167,9 @@ function featureTypeChanged() { case 'postal_code': postalCodeLayer.style = styleStrokeOnly; break; + case 'school_district': + schoolDistrictLayer.style = styleStrokeOnly; + break; default: break; } @@ -217,6 +228,9 @@ function applyStyle(placeid?) { case 'postal_code': postalCodeLayer.style = featureStyle; break; + case 'school_district': + schoolDistrictLayer.style = featureStyle; + break; default: break; } @@ -253,10 +267,11 @@ function onCountrySelected() { ['administrative_area_level_2', selectedCountry?.feature.administrative_area_level_2], ['postal_code', selectedCountry?.feature.postal_code], ['locality', selectedCountry?.feature.locality], + ['school_district', selectedCountry?.feature.school_district], ]); // Set the feature list selection to 'country'. - featureMenu.namedItem('country')!.selected = true; + featureMenu.namedItem('country')!.selected = true; // Do a comparison on the map, and disable any false items. for (const item of featureAvailabilityMap) { @@ -337,7 +352,7 @@ function showSelectedPolygon(placeid) { const types = place.types as string[]; // Create HTML for place information. - contentDiv.innerHTML = '
' + place.formatted_address + + contentDiv.innerHTML = '
' + place.formatted_address + '
Place ID: ' + placeid + '' + '
Feature type: ' + types[0] + '

'; } @@ -347,7 +362,6 @@ function showSelectedPolygon(placeid) { applyStyle(placeid); } -// TODO: Figure out how to get this into an external .js hosted on https://pantheon.corp.google.com/storage/browser/geo-devrel-public-buckets /** GENERATED FILE, DO NOT EDIT */ const countries = [ @@ -360,6 +374,19 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, + } + }, + { + "name": "Åland Islands", + "code": "AX", + "feature": { + "country": true, + "administrative_area_level_1": true, + "administrative_area_level_2": false, + "postal_code": false, + "locality": false, + "school_district": false, } }, { @@ -371,6 +398,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -382,6 +410,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -393,6 +422,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -404,6 +434,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": true, "locality": false, + "school_district": false, } }, { @@ -415,6 +446,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -426,6 +458,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -437,10 +470,11 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "Antigua and Barbuda", + "name": "Antigua & Barbuda", "code": "AG", "feature": { "country": true, @@ -448,6 +482,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -459,6 +494,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -470,6 +506,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -481,6 +518,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -492,6 +530,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": true, + "school_district": false, } }, { @@ -503,6 +542,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -514,6 +554,19 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, + } + }, + { + "name": "Bahamas", + "code": "BS", + "feature": { + "country": true, + "administrative_area_level_1": true, + "administrative_area_level_2": false, + "postal_code": false, + "locality": false, + "school_district": false, } }, { @@ -525,6 +578,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -536,6 +590,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -547,6 +602,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -558,6 +614,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -569,6 +626,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": true, "locality": true, + "school_district": false, } }, { @@ -580,6 +638,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -591,6 +650,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -602,6 +662,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -613,6 +674,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -624,10 +686,11 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "Bosnia and Herzegovina", + "name": "Bosnia & Herzegovina", "code": "BA", "feature": { "country": true, @@ -635,6 +698,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -646,6 +710,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -657,6 +722,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -668,6 +734,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -679,6 +746,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -690,6 +758,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -701,6 +770,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -712,6 +782,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": true, + "school_district": false, } }, { @@ -723,6 +794,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -734,17 +806,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, - } - }, - { - "name": "Cabo Verde", - "code": "CV", - "feature": { - "country": true, - "administrative_area_level_1": false, - "administrative_area_level_2": false, - "postal_code": false, - "locality": false, + "school_district": false, } }, { @@ -756,6 +818,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -767,6 +830,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -778,6 +842,31 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, + } + }, + { + "name": "Canary Islands", + "code": "IC", + "feature": { + "country": true, + "administrative_area_level_1": true, + "administrative_area_level_2": false, + "postal_code": false, + "locality": false, + "school_district": false, + } + }, + { + "name": "Cape Verde", + "code": "CV", + "feature": { + "country": true, + "administrative_area_level_1": false, + "administrative_area_level_2": false, + "postal_code": false, + "locality": false, + "school_district": false, } }, { @@ -789,6 +878,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -800,6 +890,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -811,6 +902,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -822,6 +914,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -833,6 +926,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -844,6 +938,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -855,6 +950,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": true, "locality": false, + "school_district": false, } }, { @@ -866,6 +962,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": true, "locality": false, + "school_district": false, } }, { @@ -877,6 +974,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": true, "locality": false, + "school_district": false, } }, { @@ -888,6 +986,31 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, + } + }, + { + "name": "Congo - Brazzaville", + "code": "CG", + "feature": { + "country": true, + "administrative_area_level_1": true, + "administrative_area_level_2": false, + "postal_code": false, + "locality": false, + "school_district": false, + } + }, + { + "name": "Congo - Kinshasa", + "code": "CD", + "feature": { + "country": true, + "administrative_area_level_1": true, + "administrative_area_level_2": true, + "postal_code": false, + "locality": false, + "school_district": false, } }, { @@ -899,6 +1022,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -910,6 +1034,19 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, + } + }, + { + "name": "Côte d’Ivoire", + "code": "CI", + "feature": { + "country": true, + "administrative_area_level_1": true, + "administrative_area_level_2": true, + "postal_code": false, + "locality": false, + "school_district": false, } }, { @@ -921,6 +1058,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -932,6 +1070,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -943,6 +1082,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -954,6 +1094,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -965,28 +1106,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": true, - } - }, - { - "name": "Côte d'Ivoire", - "code": "CI", - "feature": { - "country": true, - "administrative_area_level_1": true, - "administrative_area_level_2": true, - "postal_code": false, - "locality": false, - } - }, - { - "name": "Democratic Republic of the Congo", - "code": "CD", - "feature": { - "country": true, - "administrative_area_level_1": true, - "administrative_area_level_2": true, - "postal_code": false, - "locality": false, + "school_district": false, } }, { @@ -998,6 +1118,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1009,6 +1130,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1020,6 +1142,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1031,6 +1154,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1042,6 +1166,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1053,6 +1178,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1064,6 +1190,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1075,6 +1202,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1086,6 +1214,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1097,6 +1226,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": true, "locality": true, + "school_district": false, } }, { @@ -1108,6 +1238,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1119,6 +1250,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1130,6 +1262,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1141,6 +1274,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1152,6 +1286,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1163,6 +1298,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1174,6 +1310,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": true, "locality": true, + "school_district": false, } }, { @@ -1185,6 +1322,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1196,10 +1334,11 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "French Southern and Antarctic Lands", + "name": "French Southern Territories", "code": "TF", "feature": { "country": true, @@ -1207,6 +1346,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1218,6 +1358,19 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, + } + }, + { + "name": "Gambia", + "code": "GM", + "feature": { + "country": true, + "administrative_area_level_1": true, + "administrative_area_level_2": false, + "postal_code": false, + "locality": false, + "school_district": false, } }, { @@ -1229,6 +1382,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1240,6 +1394,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": true, "locality": true, + "school_district": false, } }, { @@ -1251,6 +1406,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1262,6 +1418,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": true, "locality": false, + "school_district": false, } }, { @@ -1273,6 +1430,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1284,6 +1442,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1295,6 +1454,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1306,6 +1466,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1317,6 +1478,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1328,6 +1490,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1339,6 +1502,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1350,6 +1514,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1361,6 +1526,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1372,6 +1538,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1383,10 +1550,11 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "Heard Island and McDonald Islands", + "name": "Heard & McDonald Islands", "code": "HM", "feature": { "country": true, @@ -1394,6 +1562,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1405,6 +1574,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1416,6 +1586,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1427,6 +1598,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": true, + "school_district": false, } }, { @@ -1438,6 +1610,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": true, "locality": false, + "school_district": false, } }, { @@ -1449,6 +1622,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": true, "locality": true, + "school_district": false, } }, { @@ -1460,6 +1634,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1471,6 +1646,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1482,6 +1658,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1493,6 +1670,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1504,6 +1682,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1515,6 +1694,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1526,6 +1706,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": true, "locality": false, + "school_district": false, } }, { @@ -1537,6 +1718,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1548,6 +1730,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": true, "locality": true, + "school_district": false, } }, { @@ -1559,6 +1742,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1570,6 +1754,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1581,6 +1766,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1592,6 +1778,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1603,6 +1790,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1614,6 +1802,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1625,6 +1814,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1636,6 +1826,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1647,6 +1838,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1658,6 +1850,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": true, "locality": false, + "school_district": false, } }, { @@ -1669,6 +1862,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1680,6 +1874,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1691,6 +1886,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1702,6 +1898,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1713,6 +1910,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1724,6 +1922,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1735,6 +1934,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": true, + "school_district": false, } }, { @@ -1746,6 +1946,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1757,6 +1958,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1768,6 +1970,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1779,6 +1982,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1790,6 +1994,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1801,6 +2006,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1812,6 +2018,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": true, + "school_district": false, } }, { @@ -1823,6 +2030,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1834,6 +2042,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1845,6 +2054,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1856,6 +2066,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1867,6 +2078,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1878,6 +2090,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1889,6 +2102,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1900,6 +2114,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1911,6 +2126,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1922,6 +2138,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1933,6 +2150,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1944,6 +2162,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1955,6 +2174,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1966,6 +2186,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1977,6 +2198,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1988,6 +2210,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -1999,6 +2222,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2010,6 +2234,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2021,6 +2246,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2032,6 +2258,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2043,6 +2270,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": true, + "school_district": false, } }, { @@ -2054,6 +2282,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2065,6 +2294,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2076,6 +2306,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2087,6 +2318,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2098,6 +2330,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2109,6 +2342,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2120,6 +2354,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2131,6 +2366,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": true, "locality": false, + "school_district": false, } }, { @@ -2142,6 +2378,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": true, "locality": false, + "school_district": false, } }, { @@ -2153,6 +2390,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2164,6 +2402,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2175,6 +2414,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2186,6 +2426,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2197,6 +2438,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2208,6 +2450,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2219,6 +2462,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2230,6 +2474,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2241,6 +2486,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2252,6 +2498,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": true, "locality": false, + "school_district": false, } }, { @@ -2263,6 +2510,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2274,6 +2522,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2285,6 +2534,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": true, "locality": false, + "school_district": false, } }, { @@ -2296,17 +2546,19 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "Republic of the Congo", - "code": "CG", + "name": "Réunion", + "code": "RE", "feature": { "country": true, "administrative_area_level_1": true, - "administrative_area_level_2": false, + "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2318,17 +2570,19 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { "name": "Russia", - "code": "RU", + "code": "SU", "feature": { "country": true, "administrative_area_level_1": true, "administrative_area_level_2": false, - "postal_code": true, + "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2340,116 +2594,43 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "Réunion", - "code": "RE", - "feature": { - "country": true, - "administrative_area_level_1": true, - "administrative_area_level_2": true, - "postal_code": false, - "locality": false, - } - }, - { - "name": "Saint Barthélemy", - "code": "BL", - "feature": { - "country": true, - "administrative_area_level_1": false, - "administrative_area_level_2": false, - "postal_code": false, - "locality": false, - } - }, - { - "name": "Saint Helena, Ascension and Tristan da Cunha", - "code": "SH", - "feature": { - "country": true, - "administrative_area_level_1": true, - "administrative_area_level_2": false, - "postal_code": false, - "locality": false, - } - }, - { - "name": "Saint Kitts and Nevis", - "code": "KN", - "feature": { - "country": true, - "administrative_area_level_1": true, - "administrative_area_level_2": false, - "postal_code": false, - "locality": false, - } - }, - { - "name": "Saint Lucia", - "code": "LC", - "feature": { - "country": true, - "administrative_area_level_1": true, - "administrative_area_level_2": false, - "postal_code": false, - "locality": false, - } - }, - { - "name": "Saint Martin", - "code": "MF", - "feature": { - "country": true, - "administrative_area_level_1": false, - "administrative_area_level_2": false, - "postal_code": true, - "locality": false, - } - }, - { - "name": "Saint Pierre and Miquelon", - "code": "PM", - "feature": { - "country": true, - "administrative_area_level_1": true, - "administrative_area_level_2": false, - "postal_code": true, - "locality": false, - } - }, - { - "name": "Saint Vincent and the Grenadines", - "code": "VC", + "name": "Samoa", + "code": "WS", "feature": { "country": true, "administrative_area_level_1": true, "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "Samoa", - "code": "WS", + "name": "San Marino", + "code": "SM", "feature": { "country": true, "administrative_area_level_1": true, "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "San Marino", - "code": "SM", + "name": "São Tomé & Príncipe", + "code": "ST", "feature": { "country": true, "administrative_area_level_1": true, "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2461,6 +2642,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2472,6 +2654,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2483,6 +2666,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2494,6 +2678,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2505,6 +2690,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2516,6 +2702,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2527,6 +2714,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2538,6 +2726,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": true, "locality": true, + "school_district": false, } }, { @@ -2549,6 +2738,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": true, "locality": true, + "school_district": false, } }, { @@ -2560,6 +2750,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2571,6 +2762,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2582,10 +2774,11 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "South Georgia and the South Sandwich Islands", + "name": "South Georgia & South Sandwich Islands", "code": "GS", "feature": { "country": true, @@ -2593,6 +2786,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": true, "locality": false, + "school_district": false, } }, { @@ -2604,6 +2798,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2615,6 +2810,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2626,6 +2822,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": true, "locality": false, + "school_district": false, } }, { @@ -2637,149 +2834,211 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "Sudan", - "code": "SD", + "name": "St. Barthélemy", + "code": "BL", "feature": { "country": true, - "administrative_area_level_1": true, + "administrative_area_level_1": false, "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "Suriname", - "code": "SR", + "name": "St. Helena", + "code": "SH", "feature": { "country": true, "administrative_area_level_1": true, "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "Svalbard and Jan Mayen", - "code": "SJ", + "name": "St. Kitts & Nevis", + "code": "KN", "feature": { "country": true, "administrative_area_level_1": true, "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "Sweden", - "code": "SE", + "name": "St. Lucia", + "code": "LC", "feature": { "country": true, "administrative_area_level_1": true, - "administrative_area_level_2": true, + "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "Switzerland", - "code": "CH", + "name": "St. Martin", + "code": "MF", + "feature": { + "country": true, + "administrative_area_level_1": false, + "administrative_area_level_2": false, + "postal_code": true, + "locality": false, + "school_district": false, + } + }, + { + "name": "St. Pierre & Miquelon", + "code": "PM", "feature": { "country": true, "administrative_area_level_1": true, - "administrative_area_level_2": true, + "administrative_area_level_2": false, "postal_code": true, "locality": false, + "school_district": false, } }, { - "name": "Syria", - "code": "SY", + "name": "St. Vincent & Grenadines", + "code": "VC", "feature": { "country": true, "administrative_area_level_1": true, "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "São Tomé and Príncipe", - "code": "ST", + "name": "Sudan", + "code": "SD", "feature": { "country": true, "administrative_area_level_1": true, "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "Taiwan", - "code": "TW", + "name": "Suriname", + "code": "SR", "feature": { "country": true, "administrative_area_level_1": true, - "administrative_area_level_2": true, + "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "Tajikistan", - "code": "TJ", + "name": "Svalbard & Jan Mayen", + "code": "SJ", "feature": { "country": true, "administrative_area_level_1": true, "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "Tanzania", - "code": "TZ", + "name": "Sweden", + "code": "SE", "feature": { "country": true, "administrative_area_level_1": true, - "administrative_area_level_2": false, + "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "Thailand", - "code": "TH", + "name": "Switzerland", + "code": "CH", "feature": { "country": true, "administrative_area_level_1": true, - "administrative_area_level_2": false, + "administrative_area_level_2": true, "postal_code": true, - "locality": true, + "locality": false, + "school_district": false, } }, { - "name": "The Bahamas", - "code": "BS", + "name": "Syria", + "code": "SY", "feature": { "country": true, "administrative_area_level_1": true, "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "The Gambia", - "code": "GM", + "name": "Taiwan", + "code": "TW", + "feature": { + "country": true, + "administrative_area_level_1": true, + "administrative_area_level_2": true, + "postal_code": false, + "locality": false, + "school_district": false, + } + }, + { + "name": "Tajikistan", + "code": "TJ", "feature": { "country": true, "administrative_area_level_1": true, "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, + } + }, + { + "name": "Tanzania", + "code": "TZ", + "feature": { + "country": true, + "administrative_area_level_1": true, + "administrative_area_level_2": false, + "postal_code": false, + "locality": false, + "school_district": false, + } + }, + { + "name": "Thailand", + "code": "TH", + "feature": { + "country": true, + "administrative_area_level_1": true, + "administrative_area_level_2": false, + "postal_code": true, + "locality": true, + "school_district": false, } }, { @@ -2791,6 +3050,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2802,6 +3062,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2813,6 +3074,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2824,10 +3086,11 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "Trinidad and Tobago", + "name": "Trinidad & Tobago", "code": "TT", "feature": { "country": true, @@ -2835,6 +3098,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2846,6 +3110,19 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, + } + }, + { + "name": "Türkiye", + "code": "TR", + "feature": { + "country": true, + "administrative_area_level_1": true, + "administrative_area_level_2": false, + "postal_code": false, + "locality": false, + "school_district": false, } }, { @@ -2857,10 +3134,11 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "Turks and Caicos Islands", + "name": "Turks & Caicos Islands", "code": "TC", "feature": { "country": true, @@ -2868,6 +3146,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": true, "locality": false, + "school_district": false, } }, { @@ -2879,17 +3158,19 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "Türkiye", - "code": "TR", + "name": "U.S. Outlying Islands", + "code": "UM", "feature": { "country": true, - "administrative_area_level_1": true, + "administrative_area_level_1": false, "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2901,6 +3182,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2912,6 +3194,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2923,6 +3206,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2934,6 +3218,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2945,6 +3230,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": true, + "school_district": false, } }, { @@ -2956,17 +3242,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": true, "locality": true, - } - }, - { - "name": "United States Minor Outlying Islands", - "code": "UM", - "feature": { - "country": true, - "administrative_area_level_1": false, - "administrative_area_level_2": false, - "postal_code": false, - "locality": false, + "school_district": true, } }, { @@ -2978,6 +3254,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -2989,6 +3266,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -3000,6 +3278,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -3011,6 +3290,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -3022,6 +3302,7 @@ const countries = [ "administrative_area_level_2": true, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -3033,10 +3314,11 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { - "name": "Wallis and Futuna", + "name": "Wallis & Futuna", "code": "WF", "feature": { "country": true, @@ -3044,17 +3326,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, - } - }, - { - "name": "Western Sahara", - "code": "EH", - "feature": { - "country": true, - "administrative_area_level_1": true, - "administrative_area_level_2": false, - "postal_code": false, - "locality": false, + "school_district": false, } }, { @@ -3066,6 +3338,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -3077,6 +3350,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, + "school_district": false, } }, { @@ -3088,17 +3362,7 @@ const countries = [ "administrative_area_level_2": false, "postal_code": false, "locality": false, - } - }, - { - "name": "Åland Islands", - "code": "AX", - "feature": { - "country": true, - "administrative_area_level_1": true, - "administrative_area_level_2": false, - "postal_code": false, - "locality": false, + "school_district": false, } }, ] diff --git a/dist/samples/dds-region-viewer/docs/index.html b/dist/samples/dds-region-viewer/docs/index.html index 4144096d7b..a6e631b6dd 100644 --- a/dist/samples/dds-region-viewer/docs/index.html +++ b/dist/samples/dds-region-viewer/docs/index.html @@ -24,10 +24,11 @@
@@ -80,7 +84,7 @@ for more information. --> diff --git a/dist/samples/dds-region-viewer/docs/index.js b/dist/samples/dds-region-viewer/docs/index.js index 6098533e3d..ca4a3d2a55 100644 --- a/dist/samples/dds-region-viewer/docs/index.js +++ b/dist/samples/dds-region-viewer/docs/index.js @@ -24,6 +24,7 @@ let admin1Layer; let admin2Layer; let localityLayer; let postalCodeLayer; +let schoolDistrictLayer; let selectedPlaceId; function initMap() { @@ -89,6 +90,9 @@ function initMap() { case "postal_code": featureMenu.selectedIndex = 4; break; + case "school_district": + featureMenu.selectedIndex = 5; + break; default: break; } @@ -106,12 +110,15 @@ function initMap() { localityLayer = map.getFeatureLayer("LOCALITY"); //@ts-ignore postalCodeLayer = map.getFeatureLayer("POSTAL_CODE"); + //@ts-ignore + schoolDistrictLayer = map.getFeatureLayer("SCHOOL_DISTRICT"); // Add event listeners for feature layers. countryLayer.addListener("click", handlePlaceClick); admin1Layer.addListener("click", handlePlaceClick); admin2Layer.addListener("click", handlePlaceClick); localityLayer.addListener("click", handlePlaceClick); postalCodeLayer.addListener("click", handlePlaceClick); + schoolDistrictLayer.addListener("click", handlePlaceClick); // List of all the layers when they get initialized. allLayers = [ countryLayer, @@ -119,12 +126,14 @@ function initMap() { admin2Layer, localityLayer, postalCodeLayer, + schoolDistrictLayer, ]; // Init map styles. applyStyle(); // Set up country and feature menus. buildMenu(); onCountrySelected(); + featureMenu.selectedIndex = 1; } // Restyle and make a request when the feature type is changed. @@ -158,6 +167,9 @@ function featureTypeChanged() { case "postal_code": postalCodeLayer.style = styleStrokeOnly; break; + case "school_district": + schoolDistrictLayer.style = styleStrokeOnly; + break; default: break; } @@ -215,6 +227,9 @@ function applyStyle(placeid) { case "postal_code": postalCodeLayer.style = featureStyle; break; + case "school_district": + schoolDistrictLayer.style = featureStyle; + break; default: break; } @@ -257,6 +272,7 @@ function onCountrySelected() { ], ["postal_code", selectedCountry?.feature.postal_code], ["locality", selectedCountry?.feature.locality], + ["school_district", selectedCountry?.feature.school_district], ]); // Set the feature list selection to 'country'. @@ -349,7 +365,6 @@ function showSelectedPolygon(placeid) { applyStyle(placeid); } -// TODO: Figure out how to get this into an external .js hosted on https://pantheon.corp.google.com/storage/browser/geo-devrel-public-buckets /** GENERATED FILE, DO NOT EDIT */ const countries = [ { @@ -361,6 +376,19 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Åland Islands", + code: "AX", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, }, }, { @@ -372,6 +400,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -383,6 +412,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -394,6 +424,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -405,6 +436,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -416,6 +448,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -427,6 +460,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -438,10 +472,11 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Antigua and Barbuda", + name: "Antigua & Barbuda", code: "AG", feature: { country: true, @@ -449,6 +484,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -460,6 +496,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -471,6 +508,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -482,6 +520,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -493,6 +532,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: true, + school_district: false, }, }, { @@ -504,6 +544,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -515,6 +556,19 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Bahamas", + code: "BS", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, }, }, { @@ -526,6 +580,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -537,6 +592,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -548,6 +604,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -559,6 +616,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -570,6 +628,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -581,6 +640,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -592,6 +652,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -603,6 +664,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -614,6 +676,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -625,10 +688,11 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Bosnia and Herzegovina", + name: "Bosnia & Herzegovina", code: "BA", feature: { country: true, @@ -636,6 +700,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -647,6 +712,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -658,6 +724,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -669,6 +736,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -680,6 +748,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -691,6 +760,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -702,6 +772,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -713,6 +784,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: true, + school_district: false, }, }, { @@ -724,6 +796,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -735,17 +808,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, - }, - }, - { - name: "Cabo Verde", - code: "CV", - feature: { - country: true, - administrative_area_level_1: false, - administrative_area_level_2: false, - postal_code: false, - locality: false, + school_district: false, }, }, { @@ -757,6 +820,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -768,6 +832,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -779,6 +844,31 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Canary Islands", + code: "IC", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, + }, + }, + { + name: "Cape Verde", + code: "CV", + feature: { + country: true, + administrative_area_level_1: false, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, }, }, { @@ -790,6 +880,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -801,6 +892,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -812,6 +904,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -823,6 +916,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -834,6 +928,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -845,6 +940,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -856,6 +952,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -867,6 +964,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -878,6 +976,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: false, + school_district: false, }, }, { @@ -889,6 +988,31 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Congo - Brazzaville", + code: "CG", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, + }, + }, + { + name: "Congo - Kinshasa", + code: "CD", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: true, + postal_code: false, + locality: false, + school_district: false, }, }, { @@ -900,6 +1024,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -911,6 +1036,19 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Côte d’Ivoire", + code: "CI", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: true, + postal_code: false, + locality: false, + school_district: false, }, }, { @@ -922,6 +1060,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -933,6 +1072,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -944,6 +1084,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -955,6 +1096,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -966,28 +1108,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: true, - }, - }, - { - name: "Côte d'Ivoire", - code: "CI", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: true, - postal_code: false, - locality: false, - }, - }, - { - name: "Democratic Republic of the Congo", - code: "CD", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: true, - postal_code: false, - locality: false, + school_district: false, }, }, { @@ -999,6 +1120,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1010,6 +1132,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1021,6 +1144,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1032,6 +1156,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1043,6 +1168,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1054,6 +1180,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1065,6 +1192,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1076,6 +1204,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1087,6 +1216,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1098,6 +1228,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -1109,6 +1240,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1120,6 +1252,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1131,6 +1264,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1142,6 +1276,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1153,6 +1288,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1164,6 +1300,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1175,6 +1312,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -1186,6 +1324,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1197,10 +1336,11 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "French Southern and Antarctic Lands", + name: "French Southern Territories", code: "TF", feature: { country: true, @@ -1208,6 +1348,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1219,6 +1360,19 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Gambia", + code: "GM", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, }, }, { @@ -1230,6 +1384,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1241,6 +1396,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -1252,6 +1408,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1263,6 +1420,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -1274,6 +1432,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1285,6 +1444,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1296,6 +1456,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1307,6 +1468,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1318,6 +1480,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1329,6 +1492,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1340,6 +1504,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1351,6 +1516,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1362,6 +1528,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1373,6 +1540,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1384,10 +1552,11 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Heard Island and McDonald Islands", + name: "Heard & McDonald Islands", code: "HM", feature: { country: true, @@ -1395,6 +1564,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1406,6 +1576,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1417,6 +1588,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1428,6 +1600,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: true, + school_district: false, }, }, { @@ -1439,6 +1612,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -1450,6 +1624,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -1461,6 +1636,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1472,6 +1648,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1483,6 +1660,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1494,6 +1672,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1505,6 +1684,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1516,6 +1696,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1527,6 +1708,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: false, + school_district: false, }, }, { @@ -1538,6 +1720,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1549,6 +1732,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -1560,6 +1744,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1571,6 +1756,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1582,6 +1768,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1593,6 +1780,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1604,6 +1792,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1615,6 +1804,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1626,6 +1816,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1637,6 +1828,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1648,6 +1840,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1659,6 +1852,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: false, + school_district: false, }, }, { @@ -1670,6 +1864,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1681,6 +1876,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1692,6 +1888,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1703,6 +1900,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1714,6 +1912,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1725,6 +1924,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1736,6 +1936,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: true, + school_district: false, }, }, { @@ -1747,6 +1948,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1758,6 +1960,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1769,6 +1972,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1780,6 +1984,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1791,6 +1996,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1802,6 +2008,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1813,6 +2020,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: true, + school_district: false, }, }, { @@ -1824,6 +2032,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1835,6 +2044,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1846,6 +2056,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1857,6 +2068,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1868,6 +2080,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1879,6 +2092,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1890,6 +2104,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1901,6 +2116,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1912,6 +2128,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1923,6 +2140,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1934,6 +2152,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1945,6 +2164,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1956,6 +2176,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1967,6 +2188,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1978,6 +2200,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1989,6 +2212,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2000,6 +2224,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2011,6 +2236,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2022,6 +2248,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2033,6 +2260,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2044,6 +2272,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: true, + school_district: false, }, }, { @@ -2055,6 +2284,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2066,6 +2296,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2077,6 +2308,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2088,6 +2320,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2099,6 +2332,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2110,6 +2344,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2121,6 +2356,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2132,6 +2368,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -2143,6 +2380,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: false, + school_district: false, }, }, { @@ -2154,6 +2392,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2165,6 +2404,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2176,6 +2416,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2187,6 +2428,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2198,6 +2440,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2209,6 +2452,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2220,6 +2464,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2231,6 +2476,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2242,6 +2488,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2253,6 +2500,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -2264,6 +2512,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2275,6 +2524,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2286,6 +2536,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -2297,17 +2548,19 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Republic of the Congo", - code: "CG", + name: "Réunion", + code: "RE", feature: { country: true, administrative_area_level_1: true, - administrative_area_level_2: false, + administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2319,17 +2572,19 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { name: "Russia", - code: "RU", + code: "SU", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, - postal_code: true, + postal_code: false, locality: false, + school_district: false, }, }, { @@ -2341,116 +2596,43 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Réunion", - code: "RE", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: true, - postal_code: false, - locality: false, - }, - }, - { - name: "Saint Barthélemy", - code: "BL", - feature: { - country: true, - administrative_area_level_1: false, - administrative_area_level_2: false, - postal_code: false, - locality: false, - }, - }, - { - name: "Saint Helena, Ascension and Tristan da Cunha", - code: "SH", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: false, - postal_code: false, - locality: false, - }, - }, - { - name: "Saint Kitts and Nevis", - code: "KN", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: false, - postal_code: false, - locality: false, - }, - }, - { - name: "Saint Lucia", - code: "LC", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: false, - postal_code: false, - locality: false, - }, - }, - { - name: "Saint Martin", - code: "MF", - feature: { - country: true, - administrative_area_level_1: false, - administrative_area_level_2: false, - postal_code: true, - locality: false, - }, - }, - { - name: "Saint Pierre and Miquelon", - code: "PM", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: false, - postal_code: true, - locality: false, - }, - }, - { - name: "Saint Vincent and the Grenadines", - code: "VC", + name: "Samoa", + code: "WS", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Samoa", - code: "WS", + name: "San Marino", + code: "SM", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "San Marino", - code: "SM", + name: "São Tomé & Príncipe", + code: "ST", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2462,6 +2644,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2473,6 +2656,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2484,6 +2668,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2495,6 +2680,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2506,6 +2692,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2517,6 +2704,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2528,6 +2716,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2539,6 +2728,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -2550,6 +2740,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -2561,6 +2752,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2572,6 +2764,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2583,10 +2776,11 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { - name: "South Georgia and the South Sandwich Islands", + name: "South Georgia & South Sandwich Islands", code: "GS", feature: { country: true, @@ -2594,6 +2788,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -2605,6 +2800,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2616,6 +2812,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2627,6 +2824,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: false, + school_district: false, }, }, { @@ -2638,149 +2836,211 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Sudan", - code: "SD", + name: "St. Barthélemy", + code: "BL", feature: { country: true, - administrative_area_level_1: true, + administrative_area_level_1: false, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Suriname", - code: "SR", + name: "St. Helena", + code: "SH", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Svalbard and Jan Mayen", - code: "SJ", + name: "St. Kitts & Nevis", + code: "KN", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Sweden", - code: "SE", + name: "St. Lucia", + code: "LC", feature: { country: true, administrative_area_level_1: true, - administrative_area_level_2: true, + administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Switzerland", - code: "CH", + name: "St. Martin", + code: "MF", + feature: { + country: true, + administrative_area_level_1: false, + administrative_area_level_2: false, + postal_code: true, + locality: false, + school_district: false, + }, + }, + { + name: "St. Pierre & Miquelon", + code: "PM", feature: { country: true, administrative_area_level_1: true, - administrative_area_level_2: true, + administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { - name: "Syria", - code: "SY", + name: "St. Vincent & Grenadines", + code: "VC", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "São Tomé and Príncipe", - code: "ST", + name: "Sudan", + code: "SD", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Taiwan", - code: "TW", + name: "Suriname", + code: "SR", feature: { country: true, administrative_area_level_1: true, - administrative_area_level_2: true, + administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Tajikistan", - code: "TJ", + name: "Svalbard & Jan Mayen", + code: "SJ", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Tanzania", - code: "TZ", + name: "Sweden", + code: "SE", feature: { country: true, administrative_area_level_1: true, - administrative_area_level_2: false, + administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Thailand", - code: "TH", + name: "Switzerland", + code: "CH", feature: { country: true, administrative_area_level_1: true, - administrative_area_level_2: false, + administrative_area_level_2: true, postal_code: true, - locality: true, + locality: false, + school_district: false, }, }, { - name: "The Bahamas", - code: "BS", + name: "Syria", + code: "SY", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "The Gambia", - code: "GM", + name: "Taiwan", + code: "TW", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: true, + postal_code: false, + locality: false, + school_district: false, + }, + }, + { + name: "Tajikistan", + code: "TJ", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Tanzania", + code: "TZ", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, + }, + }, + { + name: "Thailand", + code: "TH", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: true, + locality: true, + school_district: false, }, }, { @@ -2792,6 +3052,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2803,6 +3064,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2814,6 +3076,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2825,10 +3088,11 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Trinidad and Tobago", + name: "Trinidad & Tobago", code: "TT", feature: { country: true, @@ -2836,6 +3100,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2847,6 +3112,19 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Türkiye", + code: "TR", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, }, }, { @@ -2858,10 +3136,11 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Turks and Caicos Islands", + name: "Turks & Caicos Islands", code: "TC", feature: { country: true, @@ -2869,6 +3148,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -2880,17 +3160,19 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Türkiye", - code: "TR", + name: "U.S. Outlying Islands", + code: "UM", feature: { country: true, - administrative_area_level_1: true, + administrative_area_level_1: false, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2902,6 +3184,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2913,6 +3196,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2924,6 +3208,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2935,6 +3220,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2946,6 +3232,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: true, + school_district: false, }, }, { @@ -2957,17 +3244,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, - }, - }, - { - name: "United States Minor Outlying Islands", - code: "UM", - feature: { - country: true, - administrative_area_level_1: false, - administrative_area_level_2: false, - postal_code: false, - locality: false, + school_district: true, }, }, { @@ -2979,6 +3256,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2990,6 +3268,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -3001,6 +3280,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -3012,6 +3292,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -3023,6 +3304,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -3034,10 +3316,11 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Wallis and Futuna", + name: "Wallis & Futuna", code: "WF", feature: { country: true, @@ -3045,17 +3328,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, - }, - }, - { - name: "Western Sahara", - code: "EH", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: false, - postal_code: false, - locality: false, + school_district: false, }, }, { @@ -3067,6 +3340,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -3078,6 +3352,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -3089,17 +3364,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, - }, - }, - { - name: "Åland Islands", - code: "AX", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: false, - postal_code: false, - locality: false, + school_district: false, }, }, ]; diff --git a/dist/samples/dds-region-viewer/iframe/index.html b/dist/samples/dds-region-viewer/iframe/index.html index 6cd81b33e4..4a0d958e40 100644 --- a/dist/samples/dds-region-viewer/iframe/index.html +++ b/dist/samples/dds-region-viewer/iframe/index.html @@ -9,7 +9,7 @@ Region Coverage Viewer - + @@ -23,10 +23,11 @@
@@ -79,7 +83,7 @@ for more information. --> diff --git a/dist/samples/dds-region-viewer/jsfiddle/demo.html b/dist/samples/dds-region-viewer/jsfiddle/demo.html index acdc679876..3146a92a7d 100644 --- a/dist/samples/dds-region-viewer/jsfiddle/demo.html +++ b/dist/samples/dds-region-viewer/jsfiddle/demo.html @@ -21,10 +21,11 @@
@@ -77,7 +81,7 @@ for more information. --> diff --git a/dist/samples/dds-region-viewer/jsfiddle/demo.js b/dist/samples/dds-region-viewer/jsfiddle/demo.js index a6ea07209d..7b018abe27 100644 --- a/dist/samples/dds-region-viewer/jsfiddle/demo.js +++ b/dist/samples/dds-region-viewer/jsfiddle/demo.js @@ -23,6 +23,7 @@ let admin1Layer; let admin2Layer; let localityLayer; let postalCodeLayer; +let schoolDistrictLayer; let selectedPlaceId; function initMap() { @@ -88,6 +89,9 @@ function initMap() { case "postal_code": featureMenu.selectedIndex = 4; break; + case "school_district": + featureMenu.selectedIndex = 5; + break; default: break; } @@ -105,12 +109,15 @@ function initMap() { localityLayer = map.getFeatureLayer("LOCALITY"); //@ts-ignore postalCodeLayer = map.getFeatureLayer("POSTAL_CODE"); + //@ts-ignore + schoolDistrictLayer = map.getFeatureLayer("SCHOOL_DISTRICT"); // Add event listeners for feature layers. countryLayer.addListener("click", handlePlaceClick); admin1Layer.addListener("click", handlePlaceClick); admin2Layer.addListener("click", handlePlaceClick); localityLayer.addListener("click", handlePlaceClick); postalCodeLayer.addListener("click", handlePlaceClick); + schoolDistrictLayer.addListener("click", handlePlaceClick); // List of all the layers when they get initialized. allLayers = [ countryLayer, @@ -118,12 +125,14 @@ function initMap() { admin2Layer, localityLayer, postalCodeLayer, + schoolDistrictLayer, ]; // Init map styles. applyStyle(); // Set up country and feature menus. buildMenu(); onCountrySelected(); + featureMenu.selectedIndex = 1; } // Restyle and make a request when the feature type is changed. @@ -157,6 +166,9 @@ function featureTypeChanged() { case "postal_code": postalCodeLayer.style = styleStrokeOnly; break; + case "school_district": + schoolDistrictLayer.style = styleStrokeOnly; + break; default: break; } @@ -214,6 +226,9 @@ function applyStyle(placeid) { case "postal_code": postalCodeLayer.style = featureStyle; break; + case "school_district": + schoolDistrictLayer.style = featureStyle; + break; default: break; } @@ -256,6 +271,7 @@ function onCountrySelected() { ], ["postal_code", selectedCountry?.feature.postal_code], ["locality", selectedCountry?.feature.locality], + ["school_district", selectedCountry?.feature.school_district], ]); // Set the feature list selection to 'country'. @@ -348,7 +364,6 @@ function showSelectedPolygon(placeid) { applyStyle(placeid); } -// TODO: Figure out how to get this into an external .js hosted on https://pantheon.corp.google.com/storage/browser/geo-devrel-public-buckets /** GENERATED FILE, DO NOT EDIT */ const countries = [ { @@ -360,6 +375,19 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Åland Islands", + code: "AX", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, }, }, { @@ -371,6 +399,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -382,6 +411,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -393,6 +423,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -404,6 +435,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -415,6 +447,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -426,6 +459,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -437,10 +471,11 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Antigua and Barbuda", + name: "Antigua & Barbuda", code: "AG", feature: { country: true, @@ -448,6 +483,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -459,6 +495,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -470,6 +507,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -481,6 +519,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -492,6 +531,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: true, + school_district: false, }, }, { @@ -503,6 +543,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -514,6 +555,19 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Bahamas", + code: "BS", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, }, }, { @@ -525,6 +579,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -536,6 +591,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -547,6 +603,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -558,6 +615,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -569,6 +627,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -580,6 +639,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -591,6 +651,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -602,6 +663,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -613,6 +675,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -624,10 +687,11 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Bosnia and Herzegovina", + name: "Bosnia & Herzegovina", code: "BA", feature: { country: true, @@ -635,6 +699,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -646,6 +711,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -657,6 +723,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -668,6 +735,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -679,6 +747,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -690,6 +759,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -701,6 +771,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -712,6 +783,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: true, + school_district: false, }, }, { @@ -723,6 +795,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -734,17 +807,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, - }, - }, - { - name: "Cabo Verde", - code: "CV", - feature: { - country: true, - administrative_area_level_1: false, - administrative_area_level_2: false, - postal_code: false, - locality: false, + school_district: false, }, }, { @@ -756,6 +819,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -767,6 +831,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -778,6 +843,31 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Canary Islands", + code: "IC", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, + }, + }, + { + name: "Cape Verde", + code: "CV", + feature: { + country: true, + administrative_area_level_1: false, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, }, }, { @@ -789,6 +879,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -800,6 +891,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -811,6 +903,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -822,6 +915,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -833,6 +927,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -844,6 +939,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -855,6 +951,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -866,6 +963,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -877,6 +975,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: false, + school_district: false, }, }, { @@ -888,6 +987,31 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Congo - Brazzaville", + code: "CG", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, + }, + }, + { + name: "Congo - Kinshasa", + code: "CD", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: true, + postal_code: false, + locality: false, + school_district: false, }, }, { @@ -899,6 +1023,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -910,6 +1035,19 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Côte d’Ivoire", + code: "CI", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: true, + postal_code: false, + locality: false, + school_district: false, }, }, { @@ -921,6 +1059,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -932,6 +1071,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -943,6 +1083,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -954,6 +1095,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -965,28 +1107,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: true, - }, - }, - { - name: "Côte d'Ivoire", - code: "CI", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: true, - postal_code: false, - locality: false, - }, - }, - { - name: "Democratic Republic of the Congo", - code: "CD", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: true, - postal_code: false, - locality: false, + school_district: false, }, }, { @@ -998,6 +1119,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1009,6 +1131,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1020,6 +1143,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1031,6 +1155,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1042,6 +1167,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1053,6 +1179,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1064,6 +1191,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1075,6 +1203,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1086,6 +1215,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1097,6 +1227,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -1108,6 +1239,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1119,6 +1251,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1130,6 +1263,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1141,6 +1275,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1152,6 +1287,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1163,6 +1299,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1174,6 +1311,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -1185,6 +1323,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1196,10 +1335,11 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "French Southern and Antarctic Lands", + name: "French Southern Territories", code: "TF", feature: { country: true, @@ -1207,6 +1347,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1218,6 +1359,19 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Gambia", + code: "GM", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, }, }, { @@ -1229,6 +1383,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1240,6 +1395,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -1251,6 +1407,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1262,6 +1419,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -1273,6 +1431,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1284,6 +1443,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1295,6 +1455,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1306,6 +1467,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1317,6 +1479,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1328,6 +1491,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1339,6 +1503,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1350,6 +1515,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1361,6 +1527,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1372,6 +1539,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1383,10 +1551,11 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Heard Island and McDonald Islands", + name: "Heard & McDonald Islands", code: "HM", feature: { country: true, @@ -1394,6 +1563,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1405,6 +1575,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1416,6 +1587,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1427,6 +1599,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: true, + school_district: false, }, }, { @@ -1438,6 +1611,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -1449,6 +1623,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -1460,6 +1635,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1471,6 +1647,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1482,6 +1659,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1493,6 +1671,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1504,6 +1683,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1515,6 +1695,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1526,6 +1707,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: false, + school_district: false, }, }, { @@ -1537,6 +1719,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1548,6 +1731,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -1559,6 +1743,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1570,6 +1755,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1581,6 +1767,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1592,6 +1779,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1603,6 +1791,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1614,6 +1803,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1625,6 +1815,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1636,6 +1827,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1647,6 +1839,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1658,6 +1851,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: false, + school_district: false, }, }, { @@ -1669,6 +1863,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1680,6 +1875,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1691,6 +1887,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1702,6 +1899,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1713,6 +1911,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1724,6 +1923,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1735,6 +1935,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: true, + school_district: false, }, }, { @@ -1746,6 +1947,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1757,6 +1959,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1768,6 +1971,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1779,6 +1983,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1790,6 +1995,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1801,6 +2007,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1812,6 +2019,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: true, + school_district: false, }, }, { @@ -1823,6 +2031,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1834,6 +2043,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1845,6 +2055,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1856,6 +2067,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1867,6 +2079,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1878,6 +2091,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1889,6 +2103,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1900,6 +2115,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1911,6 +2127,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1922,6 +2139,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1933,6 +2151,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1944,6 +2163,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1955,6 +2175,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1966,6 +2187,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1977,6 +2199,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1988,6 +2211,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1999,6 +2223,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2010,6 +2235,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2021,6 +2247,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2032,6 +2259,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2043,6 +2271,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: true, + school_district: false, }, }, { @@ -2054,6 +2283,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2065,6 +2295,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2076,6 +2307,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2087,6 +2319,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2098,6 +2331,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2109,6 +2343,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2120,6 +2355,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2131,6 +2367,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -2142,6 +2379,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: false, + school_district: false, }, }, { @@ -2153,6 +2391,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2164,6 +2403,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2175,6 +2415,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2186,6 +2427,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2197,6 +2439,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2208,6 +2451,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2219,6 +2463,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2230,6 +2475,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2241,6 +2487,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2252,6 +2499,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -2263,6 +2511,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2274,6 +2523,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2285,6 +2535,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -2296,17 +2547,19 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Republic of the Congo", - code: "CG", + name: "Réunion", + code: "RE", feature: { country: true, administrative_area_level_1: true, - administrative_area_level_2: false, + administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2318,17 +2571,19 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { name: "Russia", - code: "RU", + code: "SU", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, - postal_code: true, + postal_code: false, locality: false, + school_district: false, }, }, { @@ -2340,116 +2595,43 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Réunion", - code: "RE", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: true, - postal_code: false, - locality: false, - }, - }, - { - name: "Saint Barthélemy", - code: "BL", - feature: { - country: true, - administrative_area_level_1: false, - administrative_area_level_2: false, - postal_code: false, - locality: false, - }, - }, - { - name: "Saint Helena, Ascension and Tristan da Cunha", - code: "SH", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: false, - postal_code: false, - locality: false, - }, - }, - { - name: "Saint Kitts and Nevis", - code: "KN", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: false, - postal_code: false, - locality: false, - }, - }, - { - name: "Saint Lucia", - code: "LC", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: false, - postal_code: false, - locality: false, - }, - }, - { - name: "Saint Martin", - code: "MF", - feature: { - country: true, - administrative_area_level_1: false, - administrative_area_level_2: false, - postal_code: true, - locality: false, - }, - }, - { - name: "Saint Pierre and Miquelon", - code: "PM", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: false, - postal_code: true, - locality: false, - }, - }, - { - name: "Saint Vincent and the Grenadines", - code: "VC", + name: "Samoa", + code: "WS", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Samoa", - code: "WS", + name: "San Marino", + code: "SM", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "San Marino", - code: "SM", + name: "São Tomé & Príncipe", + code: "ST", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2461,6 +2643,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2472,6 +2655,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2483,6 +2667,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2494,6 +2679,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2505,6 +2691,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2516,6 +2703,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2527,6 +2715,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2538,6 +2727,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -2549,6 +2739,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -2560,6 +2751,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2571,6 +2763,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2582,10 +2775,11 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { - name: "South Georgia and the South Sandwich Islands", + name: "South Georgia & South Sandwich Islands", code: "GS", feature: { country: true, @@ -2593,6 +2787,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -2604,6 +2799,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2615,6 +2811,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2626,6 +2823,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: false, + school_district: false, }, }, { @@ -2637,149 +2835,211 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Sudan", - code: "SD", + name: "St. Barthélemy", + code: "BL", feature: { country: true, - administrative_area_level_1: true, + administrative_area_level_1: false, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Suriname", - code: "SR", + name: "St. Helena", + code: "SH", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Svalbard and Jan Mayen", - code: "SJ", + name: "St. Kitts & Nevis", + code: "KN", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Sweden", - code: "SE", + name: "St. Lucia", + code: "LC", feature: { country: true, administrative_area_level_1: true, - administrative_area_level_2: true, + administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Switzerland", - code: "CH", + name: "St. Martin", + code: "MF", + feature: { + country: true, + administrative_area_level_1: false, + administrative_area_level_2: false, + postal_code: true, + locality: false, + school_district: false, + }, + }, + { + name: "St. Pierre & Miquelon", + code: "PM", feature: { country: true, administrative_area_level_1: true, - administrative_area_level_2: true, + administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { - name: "Syria", - code: "SY", + name: "St. Vincent & Grenadines", + code: "VC", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "São Tomé and Príncipe", - code: "ST", + name: "Sudan", + code: "SD", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Taiwan", - code: "TW", + name: "Suriname", + code: "SR", feature: { country: true, administrative_area_level_1: true, - administrative_area_level_2: true, + administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Tajikistan", - code: "TJ", + name: "Svalbard & Jan Mayen", + code: "SJ", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Tanzania", - code: "TZ", + name: "Sweden", + code: "SE", feature: { country: true, administrative_area_level_1: true, - administrative_area_level_2: false, + administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Thailand", - code: "TH", + name: "Switzerland", + code: "CH", feature: { country: true, administrative_area_level_1: true, - administrative_area_level_2: false, + administrative_area_level_2: true, postal_code: true, - locality: true, + locality: false, + school_district: false, }, }, { - name: "The Bahamas", - code: "BS", + name: "Syria", + code: "SY", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "The Gambia", - code: "GM", + name: "Taiwan", + code: "TW", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: true, + postal_code: false, + locality: false, + school_district: false, + }, + }, + { + name: "Tajikistan", + code: "TJ", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Tanzania", + code: "TZ", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, + }, + }, + { + name: "Thailand", + code: "TH", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: true, + locality: true, + school_district: false, }, }, { @@ -2791,6 +3051,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2802,6 +3063,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2813,6 +3075,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2824,10 +3087,11 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Trinidad and Tobago", + name: "Trinidad & Tobago", code: "TT", feature: { country: true, @@ -2835,6 +3099,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2846,6 +3111,19 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Türkiye", + code: "TR", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, }, }, { @@ -2857,10 +3135,11 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Turks and Caicos Islands", + name: "Turks & Caicos Islands", code: "TC", feature: { country: true, @@ -2868,6 +3147,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -2879,17 +3159,19 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Türkiye", - code: "TR", + name: "U.S. Outlying Islands", + code: "UM", feature: { country: true, - administrative_area_level_1: true, + administrative_area_level_1: false, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2901,6 +3183,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2912,6 +3195,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2923,6 +3207,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2934,6 +3219,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2945,6 +3231,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: true, + school_district: false, }, }, { @@ -2956,17 +3243,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, - }, - }, - { - name: "United States Minor Outlying Islands", - code: "UM", - feature: { - country: true, - administrative_area_level_1: false, - administrative_area_level_2: false, - postal_code: false, - locality: false, + school_district: true, }, }, { @@ -2978,6 +3255,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2989,6 +3267,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -3000,6 +3279,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -3011,6 +3291,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -3022,6 +3303,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -3033,10 +3315,11 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Wallis and Futuna", + name: "Wallis & Futuna", code: "WF", feature: { country: true, @@ -3044,17 +3327,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, - }, - }, - { - name: "Western Sahara", - code: "EH", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: false, - postal_code: false, - locality: false, + school_district: false, }, }, { @@ -3066,6 +3339,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -3077,6 +3351,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -3088,17 +3363,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, - }, - }, - { - name: "Åland Islands", - code: "AX", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: false, - postal_code: false, - locality: false, + school_district: false, }, }, ]; diff --git a/dist/samples/dds-region-viewer/playground/index.html b/dist/samples/dds-region-viewer/playground/index.html index 6916b4d576..aa5db5d3fd 100644 --- a/dist/samples/dds-region-viewer/playground/index.html +++ b/dist/samples/dds-region-viewer/playground/index.html @@ -24,10 +24,11 @@
@@ -80,7 +84,7 @@ for more information. --> diff --git a/dist/samples/dds-region-viewer/playground/index.ts b/dist/samples/dds-region-viewer/playground/index.ts index 221499a95e..53a98c68a7 100644 --- a/dist/samples/dds-region-viewer/playground/index.ts +++ b/dist/samples/dds-region-viewer/playground/index.ts @@ -26,6 +26,7 @@ let admin1Layer; let admin2Layer; let localityLayer; let postalCodeLayer; +let schoolDistrictLayer; let selectedPlaceId: string; @@ -98,6 +99,9 @@ function initMap() { case "postal_code": featureMenu.selectedIndex = 4; break; + case "school_district": + featureMenu.selectedIndex = 5; + break; default: break; } @@ -116,6 +120,8 @@ function initMap() { localityLayer = map.getFeatureLayer("LOCALITY"); //@ts-ignore postalCodeLayer = map.getFeatureLayer("POSTAL_CODE"); + //@ts-ignore + schoolDistrictLayer = map.getFeatureLayer("SCHOOL_DISTRICT"); // Add event listeners for feature layers. countryLayer.addListener("click", handlePlaceClick); @@ -123,6 +129,7 @@ function initMap() { admin2Layer.addListener("click", handlePlaceClick); localityLayer.addListener("click", handlePlaceClick); postalCodeLayer.addListener("click", handlePlaceClick); + schoolDistrictLayer.addListener("click", handlePlaceClick); // List of all the layers when they get initialized. allLayers = [ @@ -131,6 +138,7 @@ function initMap() { admin2Layer, localityLayer, postalCodeLayer, + schoolDistrictLayer, ]; // Init map styles. @@ -139,6 +147,7 @@ function initMap() { // Set up country and feature menus. buildMenu(); onCountrySelected(); + featureMenu.selectedIndex = 1; } // Restyle and make a request when the feature type is changed. @@ -173,6 +182,9 @@ function featureTypeChanged() { case "postal_code": postalCodeLayer.style = styleStrokeOnly; break; + case "school_district": + schoolDistrictLayer.style = styleStrokeOnly; + break; default: break; } @@ -231,6 +243,9 @@ function applyStyle(placeid?) { case "postal_code": postalCodeLayer.style = featureStyle; break; + case "school_district": + schoolDistrictLayer.style = featureStyle; + break; default: break; } @@ -273,6 +288,7 @@ function onCountrySelected() { ], ["postal_code", selectedCountry?.feature.postal_code], ["locality", selectedCountry?.feature.locality], + ["school_district", selectedCountry?.feature.school_district], ]); // Set the feature list selection to 'country'. @@ -362,7 +378,6 @@ function showSelectedPolygon(placeid) { // Call the global styling function. applyStyle(placeid); } -// TODO: Figure out how to get this into an external .js hosted on https://pantheon.corp.google.com/storage/browser/geo-devrel-public-buckets /** GENERATED FILE, DO NOT EDIT */ const countries = [ @@ -375,6 +390,19 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Åland Islands", + code: "AX", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, }, }, { @@ -386,6 +414,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -397,6 +426,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -408,6 +438,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -419,6 +450,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -430,6 +462,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -441,6 +474,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -452,10 +486,11 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Antigua and Barbuda", + name: "Antigua & Barbuda", code: "AG", feature: { country: true, @@ -463,6 +498,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -474,6 +510,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -485,6 +522,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -496,6 +534,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -507,6 +546,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: true, + school_district: false, }, }, { @@ -518,6 +558,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -529,6 +570,19 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Bahamas", + code: "BS", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, }, }, { @@ -540,6 +594,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -551,6 +606,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -562,6 +618,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -573,6 +630,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -584,6 +642,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -595,6 +654,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -606,6 +666,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -617,6 +678,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -628,6 +690,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -639,10 +702,11 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Bosnia and Herzegovina", + name: "Bosnia & Herzegovina", code: "BA", feature: { country: true, @@ -650,6 +714,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -661,6 +726,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -672,6 +738,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -683,6 +750,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -694,6 +762,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -705,6 +774,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -716,6 +786,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -727,6 +798,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: true, + school_district: false, }, }, { @@ -738,6 +810,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -749,17 +822,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, - }, - }, - { - name: "Cabo Verde", - code: "CV", - feature: { - country: true, - administrative_area_level_1: false, - administrative_area_level_2: false, - postal_code: false, - locality: false, + school_district: false, }, }, { @@ -771,6 +834,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -782,6 +846,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -793,6 +858,31 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Canary Islands", + code: "IC", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, + }, + }, + { + name: "Cape Verde", + code: "CV", + feature: { + country: true, + administrative_area_level_1: false, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, }, }, { @@ -804,6 +894,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -815,6 +906,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -826,6 +918,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -837,6 +930,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -848,6 +942,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -859,6 +954,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -870,6 +966,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -881,6 +978,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -892,6 +990,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: false, + school_district: false, }, }, { @@ -903,6 +1002,31 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Congo - Brazzaville", + code: "CG", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, + }, + }, + { + name: "Congo - Kinshasa", + code: "CD", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: true, + postal_code: false, + locality: false, + school_district: false, }, }, { @@ -914,6 +1038,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -925,6 +1050,19 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Côte d’Ivoire", + code: "CI", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: true, + postal_code: false, + locality: false, + school_district: false, }, }, { @@ -936,6 +1074,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -947,6 +1086,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -958,6 +1098,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -969,6 +1110,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -980,28 +1122,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: true, - }, - }, - { - name: "Côte d'Ivoire", - code: "CI", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: true, - postal_code: false, - locality: false, - }, - }, - { - name: "Democratic Republic of the Congo", - code: "CD", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: true, - postal_code: false, - locality: false, + school_district: false, }, }, { @@ -1013,6 +1134,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1024,6 +1146,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1035,6 +1158,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1046,6 +1170,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1057,6 +1182,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1068,6 +1194,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1079,6 +1206,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1090,6 +1218,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1101,6 +1230,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1112,6 +1242,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -1123,6 +1254,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1134,6 +1266,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1145,6 +1278,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1156,6 +1290,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1167,6 +1302,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1178,6 +1314,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1189,6 +1326,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -1200,6 +1338,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1211,10 +1350,11 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "French Southern and Antarctic Lands", + name: "French Southern Territories", code: "TF", feature: { country: true, @@ -1222,6 +1362,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1233,6 +1374,19 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Gambia", + code: "GM", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, }, }, { @@ -1244,6 +1398,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1255,6 +1410,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -1266,6 +1422,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1277,6 +1434,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -1288,6 +1446,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1299,6 +1458,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1310,6 +1470,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1321,6 +1482,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1332,6 +1494,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1343,6 +1506,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1354,6 +1518,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1365,6 +1530,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1376,6 +1542,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1387,6 +1554,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1398,10 +1566,11 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Heard Island and McDonald Islands", + name: "Heard & McDonald Islands", code: "HM", feature: { country: true, @@ -1409,6 +1578,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1420,6 +1590,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1431,6 +1602,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1442,6 +1614,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: true, + school_district: false, }, }, { @@ -1453,6 +1626,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -1464,6 +1638,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -1475,6 +1650,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1486,6 +1662,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1497,6 +1674,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1508,6 +1686,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1519,6 +1698,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1530,6 +1710,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1541,6 +1722,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: false, + school_district: false, }, }, { @@ -1552,6 +1734,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1563,6 +1746,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -1574,6 +1758,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1585,6 +1770,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1596,6 +1782,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1607,6 +1794,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1618,6 +1806,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1629,6 +1818,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1640,6 +1830,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1651,6 +1842,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1662,6 +1854,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1673,6 +1866,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: false, + school_district: false, }, }, { @@ -1684,6 +1878,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1695,6 +1890,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1706,6 +1902,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1717,6 +1914,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1728,6 +1926,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1739,6 +1938,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1750,6 +1950,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: true, + school_district: false, }, }, { @@ -1761,6 +1962,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1772,6 +1974,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1783,6 +1986,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1794,6 +1998,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1805,6 +2010,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1816,6 +2022,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1827,6 +2034,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: true, + school_district: false, }, }, { @@ -1838,6 +2046,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1849,6 +2058,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1860,6 +2070,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1871,6 +2082,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1882,6 +2094,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1893,6 +2106,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1904,6 +2118,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1915,6 +2130,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1926,6 +2142,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1937,6 +2154,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1948,6 +2166,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1959,6 +2178,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1970,6 +2190,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1981,6 +2202,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -1992,6 +2214,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2003,6 +2226,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2014,6 +2238,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2025,6 +2250,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2036,6 +2262,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2047,6 +2274,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2058,6 +2286,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: true, + school_district: false, }, }, { @@ -2069,6 +2298,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2080,6 +2310,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2091,6 +2322,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2102,6 +2334,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2113,6 +2346,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2124,6 +2358,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2135,6 +2370,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2146,6 +2382,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -2157,6 +2394,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: false, + school_district: false, }, }, { @@ -2168,6 +2406,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2179,6 +2418,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2190,6 +2430,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2201,6 +2442,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2212,6 +2454,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2223,6 +2466,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2234,6 +2478,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2245,6 +2490,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2256,6 +2502,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2267,6 +2514,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -2278,6 +2526,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2289,6 +2538,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2300,6 +2550,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -2311,17 +2562,19 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Republic of the Congo", - code: "CG", + name: "Réunion", + code: "RE", feature: { country: true, administrative_area_level_1: true, - administrative_area_level_2: false, + administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2333,17 +2586,19 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { name: "Russia", - code: "RU", + code: "SU", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, - postal_code: true, + postal_code: false, locality: false, + school_district: false, }, }, { @@ -2355,116 +2610,43 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Réunion", - code: "RE", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: true, - postal_code: false, - locality: false, - }, - }, - { - name: "Saint Barthélemy", - code: "BL", - feature: { - country: true, - administrative_area_level_1: false, - administrative_area_level_2: false, - postal_code: false, - locality: false, - }, - }, - { - name: "Saint Helena, Ascension and Tristan da Cunha", - code: "SH", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: false, - postal_code: false, - locality: false, - }, - }, - { - name: "Saint Kitts and Nevis", - code: "KN", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: false, - postal_code: false, - locality: false, - }, - }, - { - name: "Saint Lucia", - code: "LC", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: false, - postal_code: false, - locality: false, - }, - }, - { - name: "Saint Martin", - code: "MF", - feature: { - country: true, - administrative_area_level_1: false, - administrative_area_level_2: false, - postal_code: true, - locality: false, - }, - }, - { - name: "Saint Pierre and Miquelon", - code: "PM", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: false, - postal_code: true, - locality: false, - }, - }, - { - name: "Saint Vincent and the Grenadines", - code: "VC", + name: "Samoa", + code: "WS", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Samoa", - code: "WS", + name: "San Marino", + code: "SM", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "San Marino", - code: "SM", + name: "São Tomé & Príncipe", + code: "ST", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2476,6 +2658,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2487,6 +2670,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2498,6 +2682,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2509,6 +2694,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2520,6 +2706,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2531,6 +2718,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2542,6 +2730,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2553,6 +2742,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -2564,6 +2754,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, + school_district: false, }, }, { @@ -2575,6 +2766,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2586,6 +2778,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2597,10 +2790,11 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { - name: "South Georgia and the South Sandwich Islands", + name: "South Georgia & South Sandwich Islands", code: "GS", feature: { country: true, @@ -2608,6 +2802,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -2619,6 +2814,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2630,6 +2826,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2641,6 +2838,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: false, + school_district: false, }, }, { @@ -2652,149 +2850,211 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Sudan", - code: "SD", + name: "St. Barthélemy", + code: "BL", feature: { country: true, - administrative_area_level_1: true, + administrative_area_level_1: false, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Suriname", - code: "SR", + name: "St. Helena", + code: "SH", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Svalbard and Jan Mayen", - code: "SJ", + name: "St. Kitts & Nevis", + code: "KN", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Sweden", - code: "SE", + name: "St. Lucia", + code: "LC", feature: { country: true, administrative_area_level_1: true, - administrative_area_level_2: true, + administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Switzerland", - code: "CH", + name: "St. Martin", + code: "MF", + feature: { + country: true, + administrative_area_level_1: false, + administrative_area_level_2: false, + postal_code: true, + locality: false, + school_district: false, + }, + }, + { + name: "St. Pierre & Miquelon", + code: "PM", feature: { country: true, administrative_area_level_1: true, - administrative_area_level_2: true, + administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { - name: "Syria", - code: "SY", + name: "St. Vincent & Grenadines", + code: "VC", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "São Tomé and Príncipe", - code: "ST", + name: "Sudan", + code: "SD", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Taiwan", - code: "TW", + name: "Suriname", + code: "SR", feature: { country: true, administrative_area_level_1: true, - administrative_area_level_2: true, + administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Tajikistan", - code: "TJ", + name: "Svalbard & Jan Mayen", + code: "SJ", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Tanzania", - code: "TZ", + name: "Sweden", + code: "SE", feature: { country: true, administrative_area_level_1: true, - administrative_area_level_2: false, + administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Thailand", - code: "TH", + name: "Switzerland", + code: "CH", feature: { country: true, administrative_area_level_1: true, - administrative_area_level_2: false, + administrative_area_level_2: true, postal_code: true, - locality: true, + locality: false, + school_district: false, }, }, { - name: "The Bahamas", - code: "BS", + name: "Syria", + code: "SY", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "The Gambia", - code: "GM", + name: "Taiwan", + code: "TW", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: true, + postal_code: false, + locality: false, + school_district: false, + }, + }, + { + name: "Tajikistan", + code: "TJ", feature: { country: true, administrative_area_level_1: true, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Tanzania", + code: "TZ", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, + }, + }, + { + name: "Thailand", + code: "TH", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: true, + locality: true, + school_district: false, }, }, { @@ -2806,6 +3066,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2817,6 +3078,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2828,6 +3090,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2839,10 +3102,11 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Trinidad and Tobago", + name: "Trinidad & Tobago", code: "TT", feature: { country: true, @@ -2850,6 +3114,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2861,6 +3126,19 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, + }, + }, + { + name: "Türkiye", + code: "TR", + feature: { + country: true, + administrative_area_level_1: true, + administrative_area_level_2: false, + postal_code: false, + locality: false, + school_district: false, }, }, { @@ -2872,10 +3150,11 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Turks and Caicos Islands", + name: "Turks & Caicos Islands", code: "TC", feature: { country: true, @@ -2883,6 +3162,7 @@ const countries = [ administrative_area_level_2: false, postal_code: true, locality: false, + school_district: false, }, }, { @@ -2894,17 +3174,19 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Türkiye", - code: "TR", + name: "U.S. Outlying Islands", + code: "UM", feature: { country: true, - administrative_area_level_1: true, + administrative_area_level_1: false, administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2916,6 +3198,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2927,6 +3210,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2938,6 +3222,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2949,6 +3234,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -2960,6 +3246,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: true, + school_district: false, }, }, { @@ -2971,17 +3258,7 @@ const countries = [ administrative_area_level_2: true, postal_code: true, locality: true, - }, - }, - { - name: "United States Minor Outlying Islands", - code: "UM", - feature: { - country: true, - administrative_area_level_1: false, - administrative_area_level_2: false, - postal_code: false, - locality: false, + school_district: true, }, }, { @@ -2993,6 +3270,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -3004,6 +3282,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -3015,6 +3294,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -3026,6 +3306,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -3037,6 +3318,7 @@ const countries = [ administrative_area_level_2: true, postal_code: false, locality: false, + school_district: false, }, }, { @@ -3048,10 +3330,11 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { - name: "Wallis and Futuna", + name: "Wallis & Futuna", code: "WF", feature: { country: true, @@ -3059,17 +3342,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, - }, - }, - { - name: "Western Sahara", - code: "EH", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: false, - postal_code: false, - locality: false, + school_district: false, }, }, { @@ -3081,6 +3354,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -3092,6 +3366,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, + school_district: false, }, }, { @@ -3103,17 +3378,7 @@ const countries = [ administrative_area_level_2: false, postal_code: false, locality: false, - }, - }, - { - name: "Åland Islands", - code: "AX", - feature: { - country: true, - administrative_area_level_1: true, - administrative_area_level_2: false, - postal_code: false, - locality: false, + school_district: false, }, }, ];