Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created April 21, 2016 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmcw/ab833896692d376f0db331571cf7fdb3 to your computer and use it in GitHub Desktop.
Save tmcw/ab833896692d376f0db331571cf7fdb3 to your computer and use it in GitHub Desktop.
Geography Quiz Starter Kit
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Geography Game</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.17.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.17.0/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; font: 15px/20px sans-serif; }
.overlay {
padding: 10px;
position: absolute;
height: 100px;
bottom: 0px;
left: 0px;
right: 0px;
background: #fff;
}
#buttons { display: inline; }
button {
display:inline-block;
font-size: 30px;
padding:5px;
margin:0 10px;
}
#map {
position:absolute;
top:0;
bottom:100px;
width:100%;
}
</style>
</head>
<body>
<div id='map'></div>
<div class='overlay'>
<div style='display:inline-block;padding:5px 20px;'>
<h2>Name that country!</h2>
<p>What country is highlighted in orange?</p>
</div>
<div id='buttons'>
</div>
</div>
<script src='names.js'></script>
<script>
// Welcome to the Mapbox Geography game workshop! You've downloaded
// right file: you should be looking at this in your text editor.
// We already have a few things defined that you should be aware of:
// mapboxgl: the Mapbox GL JS library, the way you'll show maps
// names: a list of the names of all the countries
// boundsByName: an object that gives you the bounds of each country
// buttons: the container, a div element, for the buttons
// The first step is replacing YOUR-ACCESS-TOKEN-HERE with your access
// token. You can find your access token in Mapbox Studio on the right-hand
// side.
mapboxgl.accessToken = 'YOUR-ACCESS-TOKEN-HERE';
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/satellite-v8',
center: [0, 0],
zoom: 3
});
// Here are the steps:
// 1: adding a single country, the United States, in orange on the map.
// 2: choosing three countries from the list of countries from the names variable
// 3: highlighting the first country we choose
// 4: zooming to the first country we choose, by using boundsByName
// 5: adding a button for each of the three countries we choose
// 6: adding the name of the country and an onclick function to each button
// 7: determining whether you've clicked the right country
// 8: choosing countries at random
// 9: randomizing the buttons as well
// 10: make the game start again if you win!
map.on('style.load', function() {
// Your code will go below this line!
});
</script>
</body>
</html>
var boundsByName = {
"Aruba": [
[
-70.06611328125,
12.422998046874994
],
[
-69.895703125,
12.614111328124991
]
],
"Afghanistan": [
[
60.48574218750002,
29.391943359375
],
[
74.89130859375001,
38.456396484375
]
],
"Angola": [
[
11.743066406250023,
-18.019726562499983
],
[
24.046679687500074,
-4.428906249999983
]
],
"Anguilla": [
[
-63.16000976562499,
18.17138671875
],
[
-62.97958984374999,
18.269726562499997
]
],
"Albania": [
[
19.280664062500023,
39.653515625
],
[
21.031054687500017,
42.64794921875
]
],
"Aland": [
[
19.519042968750057,
60.011669921874955
],
[
20.611328125,
60.405810546875045
]
],
"Andorra": [
[
1.414843750000017,
42.434472656249994
],
[
1.740234375,
42.642724609374994
]
],
"United Arab Emirates": [
[
51.56835937500003,
22.621484375000023
],
[
56.38798828125002,
26.068164062500017
]
],
"Argentina": [
[
-73.57626953124998,
-55.032128906249945
],
[
-53.668554687500006,
-21.802539062499974
]
],
"Armenia": [
[
43.43945312500003,
38.86904296875002
],
[
46.584765625000074,
41.29096679687498
]
],
"American Samoa": [
[
-170.8205078125,
-14.359765625
],
[
-170.568115234375,
-14.257421875
]
],
"Antarctica": [
[
-180,
-89.99892578124998
],
[
180,
-60.52089843750003
]
],
"Ashmore and Cartier Is.": [
[
123.57246093750001,
-12.4359375
],
[
123.59521484375,
-12.423925781250006
]
],
"Fr. S. Antarctic Lands": [
[
51.65927734375006,
-49.709863281249945
],
[
70.55546875000007,
-46.32685546874997
]
],
"Antigua and Barb.": [
[
-61.887109374999966,
16.997167968750034
],
[
-61.68603515625003,
17.714062499999983
]
],
"Australia": [
[
112.90820312499997,
-54.74921875000004
],
[
158.95888671875,
-10.051757812500014
]
],
"Austria": [
[
9.524023437500006,
46.399707031249996
],
[
17.147363281250023,
49.001123046874994
]
],
"Azerbaijan": [
[
44.76826171875004,
38.39873046874996
],
[
50.3659179687501,
41.890966796875006
]
],
"Burundi": [
[
29.01416015625,
-4.455859375
],
[
30.811425781250023,
-2.31298828125
]
],
"Belgium": [
[
2.52490234375,
49.51088867187502
],
[
6.364453125000011,
51.49111328125002
]
],
"Benin": [
[
0.763378906250011,
6.216796875
],
[
3.83447265625,
12.383837890624989
]
],
"Burkina Faso": [
[
-5.523535156249977,
9.424707031249994
],
[
2.38916015625,
15.077880859375
]
],
"Bangladesh": [
[
88.02343750000003,
20.790429687500023
],
[
92.63164062500002,
26.57153320312497
]
],
"Bulgaria": [
[
22.344042968750017,
41.243554687499994
],
[
28.585351562500023,
44.23779296875
]
],
"Bahrain": [
[
50.45244140625002,
25.806787109374994
],
[
50.61748046875002,
26.246435546875
]
],
"Bahamas": [
[
-78.98564453124996,
20.93740234375005
],
[
-72.74726562500001,
26.940087890625023
]
],
"Bosnia and Herz.": [
[
15.736621093750045,
42.559716796874994
],
[
19.583789062500017,
45.27656249999998
]
],
"St-Barthélemy": [
[
-62.875439453125,
17.875195312499997
],
[
-62.799707031249994,
17.922265625
]
],
"Belarus": [
[
23.175097656250017,
51.265039062499994
],
[
32.71025390625002,
56.145800781249996
]
],
"Belize": [
[
-89.2375,
15.888671875
],
[
-87.78862304687493,
18.482324218750023
]
],
"Bermuda": [
[
-64.86284179687499,
32.259619140625
],
[
-64.66831054687499,
32.3869140625
]
],
"Bolivia": [
[
-69.645703125,
-22.891699218750006
],
[
-57.49565429687499,
-9.71044921875
]
],
"Brazil": [
[
-74.00205078125003,
-33.74218750000003
],
[
-34.80546874999999,
5.257958984374966
]
],
"Barbados": [
[
-59.6466796875,
13.062207031249997
],
[
-59.427636718749994,
13.317675781250003
]
],
"Brunei": [
[
114.0638671875,
4.023974609375017
],
[
115.32675781250006,
5.022363281250023
]
],
"Bhutan": [
[
88.73876953125,
26.7015625
],
[
92.08339843750002,
28.311181640624994
]
],
"Botswana": [
[
19.977343750000017,
-26.85419921875001
],
[
29.36484375,
-17.78759765625
]
],
"Central African Rep.": [
[
14.43115234375,
2.270068359374989
],
[
27.4033203125,
10.996240234374994
]
],
"Canada": [
[
-141.00214843750004,
41.6748535156251
],
[
-52.653662109375034,
83.11611328125005
]
],
"Switzerland": [
[
5.970019531250017,
45.830029296875
],
[
10.45458984375,
47.775634765625
]
],
"Chile": [
[
-109.434130859375,
-55.891699218750006
],
[
-66.435791015625,
-17.50605468749997
]
],
"China": [
[
73.60732421875,
18.21826171875003
],
[
134.75234375,
53.55561523437498
]
],
"Côte d'Ivoire": [
[
-8.603564453124989,
4.351318359375
],
[
-2.505859375000028,
10.724072265625054
]
],
"Cameroon": [
[
8.5328125,
1.676220703124997
],
[
16.183398437500017,
13.078515625
]
],
"Dem. Rep. Congo": [
[
12.213671875000017,
-13.453808593750011
],
[
31.274023437500006,
5.312109375
]
],
"Congo": [
[
11.130175781250017,
-5.004296875
],
[
18.622167968750006,
3.687304687499989
]
],
"Cook Is.": [
[
-159.84248046875,
-21.24951171875
],
[
-159.736865234375,
-21.18642578125001
]
],
"Colombia": [
[
-79.02543945312499,
-4.2359375
],
[
-66.87602539062499,
12.434375
]
],
"Comoros": [
[
43.226660156250006,
-12.368261718749977
],
[
44.52675781250005,
-11.368457031249946
]
],
"Cape Verde": [
[
-25.34155273437497,
14.818212890625048
],
[
-22.68188476562503,
17.193652343750017
]
],
"Costa Rica": [
[
-85.90800781249999,
8.070654296874991
],
[
-82.56357421874999,
11.189453125
]
],
"Cuba": [
[
-84.88720703125003,
19.85546874999997
],
[
-74.13681640625003,
23.19042968750003
]
],
"Curaçao": [
[
-69.15888671875,
12.045458984374989
],
[
-68.75107421874999,
12.380273437499994
]
],
"Cayman Is.": [
[
-81.41909179687502,
19.271875
],
[
-79.74228515625,
19.765722656250006
]
],
"N. Cyprus": [
[
32.71269531250002,
35.000341796875
],
[
34.55605468750002,
35.662060546875
]
],
"Cyprus": [
[
32.30097656250001,
34.569580078125
],
[
34.05019531250002,
35.182666015624996
]
],
"Czech Rep.": [
[
12.089746093750023,
48.576220703124996
],
[
18.83222656250001,
51.03779296875
]
],
"Germany": [
[
5.857519531250034,
47.27880859375003
],
[
15.0166015625,
55.058740234374966
]
],
"Djibouti": [
[
41.7646484375,
10.941015625
],
[
43.409765625,
12.70859375
]
],
"Dominica": [
[
-61.48115234375,
15.227294921875
],
[
-61.25107421874999,
15.633105468750003
]
],
"Denmark": [
[
8.121484375000023,
54.628857421874955
],
[
15.137109375000051,
57.73691406249998
]
],
"Dominican Rep.": [
[
-72.000390625,
17.63559570312499
],
[
-68.33916015624999,
19.913964843749994
]
],
"Algeria": [
[
-8.683349609375,
18.986621093750003
],
[
11.967871093750006,
37.0923828125
]
],
"Ecuador": [
[
-91.654150390625,
-4.990625
],
[
-75.24960937499998,
1.455371093750031
]
],
"Egypt": [
[
24.703222656250006,
21.994873046875
],
[
36.87138671875002,
31.654980468749997
]
],
"Eritrea": [
[
36.42675781249997,
12.3765625
],
[
43.11669921874997,
18.00507812500004
]
],
"Spain": [
[
-18.160546874999937,
27.646386718750023
],
[
4.322070312500045,
43.76455078125005
]
],
"Estonia": [
[
21.854492187500057,
57.52548828124998
],
[
28.15107421875004,
59.63901367187506
]
],
"Ethiopia": [
[
32.99892578125002,
3.456103515624989
],
[
47.97822265625001,
14.852294921875
]
],
"Finland": [
[
20.622167968750006,
59.81601562500006
],
[
31.536523437499994,
70.06484375
]
],
"Fiji": [
[
-180,
-21.70585937499999
],
[
180,
-12.476953125
]
],
"Falkland Is.": [
[
-61.14501953125003,
-52.308007812499994
],
[
-57.79179687499999,
-51.26992187499998
]
],
"France": [
[
-61.79409179687502,
-21.369042968750037
],
[
55.8390625000001,
51.097119140624955
]
],
"Faeroe Is.": [
[
-7.422607421875,
61.41430664062497
],
[
-6.406054687499932,
62.35566406250001
]
],
"Micronesia": [
[
138.06191406250005,
5.27724609374998
],
[
162.99345703125002,
9.593310546874989
]
],
"Gabon": [
[
8.703125,
-3.916308593750003
],
[
14.480566406250006,
2.302197265624997
]
],
"United Kingdom": [
[
-8.14482421874996,
50.02138671875002
],
[
1.74658203125,
60.83188476562498
]
],
"Georgia": [
[
39.97832031250002,
41.070214843749994
],
[
46.67255859375001,
43.569775390625
]
],
"Guernsey": [
[
-2.646142578124994,
49.4287109375
],
[
-2.512304687499977,
49.506591796875
]
],
"Ghana": [
[
-3.243896484375,
4.762451171875
],
[
1.187207031250011,
11.166894531249994
]
],
"Guinea": [
[
-15.051220703124983,
7.215917968749991
],
[
-7.681201171874989,
12.673925781249991
]
],
"Gambia": [
[
-16.824804687499977,
13.064160156249997
],
[
-13.826708984374989,
13.812109375
]
],
"Guinea-Bissau": [
[
-16.711816406249937,
10.940136718750011
],
[
-13.673535156249926,
12.679931640624986
]
],
"Eq. Guinea": [
[
8.434277343750068,
0.960107421875037
],
[
11.335351562500023,
3.758300781249972
]
],
"Greece": [
[
19.646484375,
34.93447265625002
],
[
28.23183593750005,
41.74379882812502
]
],
"Grenada": [
[
-61.782177734375,
12.008447265624994
],
[
-61.60703125,
12.237011718749997
]
],
"Greenland": [
[
-72.81806640624995,
59.815478515625045
],
[
-11.425537109374972,
83.59960937500006
]
],
"Guatemala": [
[
-92.23515624999999,
13.736523437499997
],
[
-88.22832031249999,
17.81640625
]
],
"Guam": [
[
144.64931640625002,
13.257519531249997
],
[
144.94082031250002,
13.622363281250003
]
],
"Guyana": [
[
-61.3908203125,
1.201220703124989
],
[
-56.4828125,
8.54931640625
]
],
"Hong Kong": [
[
113.83886718749997,
22.195166015625034
],
[
114.33525390625002,
22.564990234375074
]
],
"Heard I. and McDonald Is.": [
[
73.25117187500001,
-53.1845703125
],
[
73.83779296875002,
-52.96630859375
]
],
"Honduras": [
[
-89.36259765624996,
12.979248046875028
],
[
-83.15751953124999,
16.513964843750017
]
],
"Croatia": [
[
13.517187500000063,
42.43291015624999
],
[
19.400976562500063,
46.53461914062504
]
],
"Haiti": [
[
-74.478125,
18.039160156250063
],
[
-71.6453125,
20.093652343750023
]
],
"Hungary": [
[
16.093066406250017,
45.75302734375
],
[
22.87666015625001,
48.553466796875
]
],
"Indonesia": [
[
95.20664062500006,
-10.90966796875
],
[
140.97617187500012,
5.907031250000031
]
],
"Isle of Man": [
[
-4.785351562499983,
54.05869140625
],
[
-4.337988281249977,
54.407177734375
]
],
"India": [
[
68.16503906250009,
6.748681640624994
],
[
97.34355468750002,
35.49589843750002
]
],
"Indian Ocean Ter.": [
[
96.8258789062501,
-12.199804687500034
],
[
105.72539062500002,
-10.430664062500028
]
],
"Br. Indian Ocean Ter.": [
[
72.34970703125,
-7.435351562500003
],
[
72.49853515625,
-7.220410156250011
]
],
"Ireland": [
[
-10.39023437499992,
51.473730468750034
],
[
-6.027392578124989,
55.365820312500006
]
],
"Iran": [
[
44.02324218750002,
25.102099609375017
],
[
63.30517578124997,
39.76855468750006
]
],
"Iraq": [
[
38.773535156250006,
29.063671875
],
[
48.546484375,
37.371875
]
],
"Iceland": [
[
-24.475683593749977,
63.406689453125
],
[
-13.556103515624983,
66.52607421875
]
],
"Israel": [
[
34.24531250000001,
29.47734375
],
[
35.91347656250002,
33.43173828125
]
],
"Italy": [
[
6.627734375000017,
36.687841796875006
],
[
18.485839843750057,
47.082128906250006
]
],
"Jamaica": [
[
-78.339501953125,
17.71494140624999
],
[
-76.21079101562499,
18.522216796875
]
],
"Jersey": [
[
-2.23583984375,
49.169824218749994
],
[
-2.009912109374994,
49.266357421875
]
],
"Jordan": [
[
34.95078125,
29.190478515624996
],
[
39.29277343750002,
33.372216796874994
]
],
"Japan": [
[
123.67978515625012,
24.266064453124955
],
[
145.83300781249997,
45.509521484375
]
],
"Siachen Glacier": [
[
76.76689453124999,
35.109912109374996
],
[
77.79941406250003,
35.66171875
]
],
"Kazakhstan": [
[
46.609179687500074,
40.60864257812506
],
[
87.32285156250012,
55.389599609374955
]
],
"Kenya": [
[
33.9,
-4.692382812500014
],
[
41.88398437500004,
5.492285156250006
]
],
"Kyrgyzstan": [
[
69.2291015625,
39.20751953125
],
[
80.24619140625003,
43.240380859374994
]
],
"Cambodia": [
[
102.31972656250005,
10.411230468749991
],
[
107.60546874999997,
14.705078125
]
],
"Kiribati": [
[
-174.54082031250002,
-11.456835937500017
],
[
174.77890625000006,
3.923535156249983
]
],
"St. Kitts and Nevis": [
[
-62.84047851562494,
17.10058593749997
],
[
-62.53222656250003,
17.40258789062503
]
],
"Korea": [
[
126.00751953125004,
33.201513671875034
],
[
130.93427734375004,
38.6234375
]
],
"Kosovo": [
[
20.02949218750001,
41.853808593749996
],
[
21.7529296875,
43.261083984375
]
],
"Kuwait": [
[
46.53144531250004,
28.53315429687504
],
[
48.442480468750006,
30.097314453125023
]
],
"Lao PDR": [
[
100.11494140625007,
13.921191406250102
],
[
107.65312,
22.495263671874966
]
],
"Lebanon": [
[
35.10859375000001,
33.07568359375
],
[
36.5849609375,
34.6787109375
]
],
"Liberia": [
[
-11.507519531249983,
4.351318359375
],
[
-7.39990234375,
8.537695312499991
]
],
"Libya": [
[
9.310253906250011,
19.496630859375003
],
[
25.150488281250006,
33.181933593749996
]
],
"Saint Lucia": [
[
-61.073144531249994,
13.717578125
],
[
-60.88676757812499,
14.093359375
]
],
"Liechtenstein": [
[
9.4794921875,
47.057373046875
],
[
9.610546875000011,
47.270751953125
]
],
"Sri Lanka": [
[
79.70781250000002,
5.949365234375051
],
[
81.87695312499997,
9.812695312500011
]
],
"Lesotho": [
[
27.0517578125,
-30.64228515625001
],
[
29.390722656250006,
-28.58173828125001
]
],
"Lithuania": [
[
20.89980468750008,
53.892968749999966
],
[
26.775683593750045,
56.41118164062499
]
],
"Luxembourg": [
[
5.725,
49.445458984374994
],
[
6.49375,
50.1671875
]
],
"Latvia": [
[
21.014941406250017,
55.667529296874996
],
[
28.202050781250023,
58.063427734375
]
],
"Macao": [
[
113.47890625000002,
22.195556640625
],
[
113.54814453124999,
22.24594726562499
]
],
"St-Martin": [
[
-63.123046875,
18.06894531249999
],
[
-63.009423828124994,
18.11533203124999
]
],
"Morocco": [
[
-17.003076171874937,
21.420703125000017
],
[
-1.065527343749949,
35.929882812499955
]
],
"Monaco": [
[
7.377734375000017,
43.731738281249996
],
[
7.438671875000011,
43.770898437499994
]
],
"Moldova": [
[
26.618945312500017,
45.450439453125
],
[
30.13105468750001,
48.477734375
]
],
"Madagascar": [
[
43.25712890625002,
-25.57050781250004
],
[
50.482714843750074,
-12.079589843749957
]
],
"Maldives": [
[
73.38203125000004,
3.229394531250051
],
[
73.52832031249997,
4.24765625000002
]
],
"Mexico": [
[
-118.40136718749997,
14.545410156249986
],
[
-86.69628906249997,
32.71533203125003
]
],
"Marshall Is.": [
[
166.84472656250003,
5.799804687500043
],
[
171.75683593749997,
11.168652343750026
]
],
"Macedonia": [
[
20.448632812500023,
40.849902343749996
],
[
23.005664062500017,
42.358154296875
]
],
"Mali": [
[
-12.280615234374977,
10.143261718749997
],
[
4.234667968750017,
24.99560546875
]
],
"Malta": [
[
14.180371093750011,
35.820214843749994
],
[
14.566210937499989,
36.075781250000034
]
],
"Myanmar": [
[
92.17958984375005,
9.875390625
],
[
101.14726562500002,
28.51704101562504
]
],
"Montenegro": [
[
18.436328125000017,
41.869091796875
],
[
20.34765625,
43.542333984375
]
],
"Mongolia": [
[
87.7431640625,
41.595507812499996
],
[
119.89785156250002,
52.11728515625
]
],
"N. Mariana Is.": [
[
145.15214843750007,
14.111328125000014
],
[
145.83544921875003,
18.806787109375023
]
],
"Mozambique": [
[
30.221777343750006,
-26.861621093750003
],
[
40.84453125000002,
-10.46435546875
]
],
"Mauritania": [
[
-17.06396484375,
14.745361328125043
],
[
-4.822607421874949,
27.285937500000045
]
],
"Montserrat": [
[
-62.223046875,
16.681201171875003
],
[
-62.1484375,
16.8095703125
]
],
"Mauritius": [
[
57.31767578125002,
-20.51318359375
],
[
57.7919921875,
-19.98994140625001
]
],
"Malawi": [
[
32.67041015624997,
-17.13105468750004
],
[
35.8927734375001,
-9.395019531249986
]
],
"Malaysia": [
[
99.64628906250002,
0.861962890625023
],
[
119.2663085937501,
7.351660156250006
]
],
"Namibia": [
[
11.7216796875,
-28.938769531250003
],
[
25.2587890625,
-16.96767578125001
]
],
"New Caledonia": [
[
159.92822265624997,
-22.661132812500014
],
[
168.1390625,
-19.114648437500023
]
],
"Niger": [
[
0.163867187500017,
11.6962890625
],
[
15.963183593750017,
23.517871093750003
]
],
"Norfolk Island": [
[
167.90615234375002,
-29.096289062500006
],
[
167.9904296875,
-29.013964843750003
]
],
"Nigeria": [
[
2.686035156250057,
4.277392578125031
],
[
14.627148437500068,
13.872851562500003
]
],
"Nicaragua": [
[
-87.670166015625,
10.7353515625
],
[
-83.15751953124999,
15.008056640625
]
],
"Niue": [
[
-169.94833984375,
-19.13789062500001
],
[
-169.793408203125,
-18.96601562500001
]
],
"Netherlands": [
[
-68.37109375000003,
12.032080078124977
],
[
7.197265625000028,
53.62548828125
]
],
"Norway": [
[
-9.098876953125,
58.02094726562501
],
[
33.629296875,
80.47783203124999
]
],
"Nepal": [
[
80.05166015625002,
26.360302734374997
],
[
88.16152343750002,
30.3875
]
],
"Nauru": [
[
166.90703125000005,
-0.55078125
],
[
166.95839843750002,
-0.489355468750006
]
],
"New Zealand": [
[
-176.84765625000003,
-52.570312499999964
],
[
178.53623046875006,
-8.546484374999949
]
],
"Oman": [
[
51.977636718750006,
16.648388671874955
],
[
59.8375,
26.356347656250023
]
],
"Pakistan": [
[
60.843359375,
23.753369140624997
],
[
77.04863281249999,
37.036669921874996
]
],
"Panama": [
[
-83.02734375,
7.22006835937502
],
[
-77.19599609374995,
9.597851562500026
]
],
"Pitcairn Is.": [
[
-128.3501953125,
-24.41259765625
],
[
-128.290087890625,
-24.3232421875
]
],
"Peru": [
[
-81.33662109375,
-18.34560546875001
],
[
-68.68525390625,
-0.041748046875
]
],
"Philippines": [
[
116.96953125000007,
5.060205078124994
],
[
126.59335937500012,
20.841259765624983
]
],
"Palau": [
[
131.13496093750004,
3.021875
],
[
134.65957031250005,
7.712109374999983
]
],
"Papua New Guinea": [
[
140.86230468749997,
-11.630566406249969
],
[
155.95761718750006,
-1.353222656249983
]
],
"Poland": [
[
14.128613281250011,
49.020751953125
],
[
24.105761718750017,
54.838183593749996
]
],
"Puerto Rico": [
[
-67.93706054687496,
17.94726562499997
],
[
-65.29487304687501,
18.522167968749955
]
],
"Dem. Rep. Korea": [
[
124.34863281249997,
37.71904296874996
],
[
130.68730468750007,
42.998144531250034
]
],
"Portugal": [
[
-31.282958984375,
32.648291015625034
],
[
-6.2125,
42.13740234375001
]
],
"Paraguay": [
[
-62.65097656249999,
-27.553808593750006
],
[
-54.241796875,
-19.286230468750006
]
],
"Palestine": [
[
34.198144531249994,
31.208300781250045
],
[
35.57207031250002,
32.53442382812503
]
],
"Fr. Polynesia": [
[
-151.51240234375004,
-20.87587890625001
],
[
-136.29389648437498,
-8.781542968749974
]
],
"Qatar": [
[
50.75458984375001,
24.564648437499997
],
[
51.60888671875,
26.153271484374997
]
],
"Romania": [
[
20.241796875,
43.670800781249994
],
[
29.705859375000017,
48.263476562499996
]
],
"Russia": [
[
-180,
41.19926757812502
],
[
180,
81.85419921874998
]
],
"Rwanda": [
[
28.85761718750001,
-2.80859375
],
[
30.8765625,
-1.063085937500006
]
],
"W. Sahara": [
[
-17.098779296874994,
20.80615234375
],
[
-8.68212890625,
27.656445312499997
]
],
"Saudi Arabia": [
[
34.61621093749997,
16.37177734375001
],
[
55.641015625,
32.12451171875
]
],
"Sudan": [
[
21.825292968750006,
8.665625
],
[
38.609472656250006,
22.202441406250003
]
],
"S. Sudan": [
[
24.147363281250023,
3.49072265625
],
[
35.26835937500002,
12.223095703124997
]
],
"Senegal": [
[
-17.53564453125,
12.328027343749994
],
[
-11.382421874999977,
16.67890625
]
],
"Singapore": [
[
103.65019531249999,
1.265380859375
],
[
103.99638671874999,
1.447070312499989
]
],
"S. Geo. and S. Sandw. Is.": [
[
-38.017431640625034,
-58.49228515625001
],
[
-26.25986328124992,
-53.98408203125004
]
],
"Saint Helena": [
[
-14.414941406249994,
-16.00400390625002
],
[
-5.65971679687496,
-7.882617187499974
]
],
"Solomon Is.": [
[
155.67753906250002,
-11.832226562500011
],
[
166.92919921875003,
-6.608886718750014
]
],
"Sierra Leone": [
[
-13.292675781249955,
6.906542968750003
],
[
-10.283203124999972,
9.996533203124983
]
],
"El Salvador": [
[
-90.105908203125,
13.164013671874997
],
[
-87.71533203125,
14.431103515624997
]
],
"San Marino": [
[
12.396875,
43.894091796874996
],
[
12.5146484375,
43.98974609375
]
],
"Somaliland": [
[
42.65644531250001,
7.9970703125
],
[
48.938574218750006,
11.499804687499989
]
],
"Somalia": [
[
40.964453125,
-1.6953125
],
[
51.390234375,
11.983691406249989
]
],
"St. Pierre and Miquelon": [
[
-56.386914062499955,
46.752832031249994
],
[
-56.137353515624994,
47.09897460937498
]
],
"Serbia": [
[
18.839062499999983,
42.24213867187504
],
[
22.97685546874999,
46.169189453125
]
],
"São Tomé and Principe": [
[
6.468164062499994,
0.047363281249972
],
[
7.45234375000004,
1.699121093750037
]
],
"Suriname": [
[
-58.05449218749999,
1.842236328124997
],
[
-53.990478515625,
5.993457031249989
]
],
"Slovakia": [
[
16.862695312500023,
47.763427734375
],
[
22.538671875,
49.597705078124996
]
],
"Slovenia": [
[
13.378222656250017,
45.428369140624994
],
[
16.516210937500006,
46.86328125
]
],
"Sweden": [
[
11.14716796875004,
55.34638671875004
],
[
24.15546875000004,
69.036865234375
]
],
"Swaziland": [
[
30.7875,
-27.30996093750001
],
[
32.112890625,
-25.74296875
]
],
"Sint Maarten": [
[
-63.12470703125,
18.019189453124994
],
[
-63.011181640625,
18.06894531249999
]
],
"Seychelles": [
[
55.383398437500006,
-4.785546875
],
[
55.54296875,
-4.558789062500011
]
],
"Syria": [
[
35.76445312500002,
32.317285156249994
],
[
42.35908203125001,
37.297265625
]
],
"Turks and Caicos Is.": [
[
-72.34238281250003,
21.75170898437503
],
[
-71.63691406249993,
21.951904296875057
]
],
"Chad": [
[
13.4482421875,
7.475292968749997
],
[
23.9833984375,
23.445214843749994
]
],
"Togo": [
[
-0.090185546874977,
6.089404296874989
],
[
1.777929687500006,
11.115625
]
],
"Thailand": [
[
97.37392578125,
5.636767578125045
],
[
105.641015625,
20.424414062499977
]
],
"Tajikistan": [
[
67.34960937499997,
36.684033203124955
],
[
75.11875,
41.03510742187498
]
],
"Turkmenistan": [
[
52.4938476562501,
35.17080078125005
],
[
66.629296875,
42.778466796874966
]
],
"Timor-Leste": [
[
124.0363281250001,
-9.511914062499997
],
[
127.29609375000004,
-8.139941406250003
]
],
"Tonga": [
[
-175.36235351562496,
-21.450585937500037
],
[
-173.921875,
-18.565332031250023
]
],
"Trinidad and Tobago": [
[
-61.906103515625006,
10.064648437499997
],
[
-60.525488281250034,
11.325390624999983
]
],
"Tunisia": [
[
7.495605468750057,
30.229394531249994
],
[
11.535937500000017,
37.34038085937499
]
],
"Turkey": [
[
25.6689453125,
35.831445312499994
],
[
44.81718750000002,
42.09326171875
]
],
"Taiwan": [
[
118.28730468750004,
21.925
],
[
121.92900390625002,
25.276904296875017
]
],
"Tanzania": [
[
29.32343750000004,
-11.716210937500009
],
[
40.46357421875004,
-0.994921875
]
],
"Uganda": [
[
29.561914062500023,
-1.469921875000011
],
[
34.97822265625001,
4.22021484375
]
],
"Ukraine": [
[
22.131835937500057,
44.387597656249966
],
[
40.12832031250005,
52.35356445312496
]
],
"Uruguay": [
[
-58.438134765624994,
-34.93281250000001
],
[
-53.12558593749999,
-30.10107421875
]
],
"United States": [
[
-178.19453124999998,
18.963916015625074
],
[
179.77998046875015,
71.40766601562501
]
],
"Uzbekistan": [
[
55.97568359375006,
37.172216796875034
],
[
73.1369140625001,
45.55537109375001
]
],
"Vatican": [
[
12.427539062500017,
41.89755859375
],
[
12.439160156250011,
41.906201171875
]
],
"St. Vin. and Gren.": [
[
-61.35351562499997,
12.69472656249998
],
[
-61.12402343750003,
13.358740234374991
]
],
"Venezuela": [
[
-73.36621093749997,
0.687988281250014
],
[
-59.82890625,
12.177880859375023
]
],
"British Virgin Is.": [
[
-64.69511718749996,
18.39912109375001
],
[
-64.27358398437497,
18.75268554687503
]
],
"U.S. Virgin Is.": [
[
-65.02363281249998,
17.701708984375045
],
[
-64.58046874999994,
18.38520507812504
]
],
"Vietnam": [
[
102.12744140624997,
8.583251953125
],
[
109.44492187500006,
23.34521484375003
]
],
"Vanuatu": [
[
166.52607421875004,
-20.241796874999977
],
[
169.89628906250007,
-13.709472656250014
]
],
"Wallis and Futuna Is.": [
[
-178.19438476562496,
-14.324902343749983
],
[
-176.128076171875,
-13.221679687500028
]
],
"Samoa": [
[
-172.77851562499998,
-14.047265625
],
[
-171.44956054687503,
-13.465234375
]
],
"Yemen": [
[
42.5490234375001,
12.318994140624994
],
[
54.511132812499994,
18.996142578125074
]
],
"South Africa": [
[
16.447558593750045,
-46.96289062499996
],
[
37.88769531249997,
-22.146289062500017
]
],
"Zambia": [
[
21.978906250000023,
-18.04150390625
],
[
33.66152343750002,
-8.193652343750003
]
],
"Zimbabwe": [
[
25.224023437500023,
-22.40205078125001
],
[
33.00673828125002,
-15.64306640625
]
]
};
var names = Object.keys(boundsByName);
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment