-
Notifications
You must be signed in to change notification settings - Fork 0
/
voronoi_out.html
217 lines (207 loc) · 33 KB
/
voronoi_out.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>Simple Polygon</title>
<style>
/* Always set the map height explicitly to define the size of the div
* element that contains the map. */
#map {
height: 100%;
}
/* Optional: Makes the sample page fill the window. */
html, body {
height: 100%;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
// This example creates a simple polygon representing the Bermuda Triangle.
function initMap() {
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 3,
center: {lat: 24.886, lng: -70.268},
mapTypeId: 'terrain'
});
// Define the LatLng coordinates for the polygon's path.
var polygons = []
var labels = []
labels.push({position: {lat: 54.7001729, lng: 17.3169313}, label: "Słowiński National Park", map: map})
labels.push({position: {lat: 22.360883, lng: 114.1499087}, label: "Kam Shan Country Park", map: map})
polygons.push([{lat:22.318301245200182, lng:114.14840667288499},{lat:22.398682564276292, lng:114.19192718225281},{lat:22.422374657588584, lng:114.17982285304032},{lat:22.423030012158037, lng:114.17691739882471},{lat:22.331503846109037, lng:114.06509172241077},{lat:22.330430596497266, lng:114.06457421380719},{lat:22.318301245200182, lng:114.14840667288499}])
labels.push({position: {lat: 22.4046727, lng: 114.2501999}, label: "Ma On Shan Country Park", map: map})
polygons.push([{lat:22.354160693509428, lng:114.23917572196079},{lat:22.398682564276292, lng:114.19192718225281},{lat:22.422374657588584, lng:114.17982285304032},{lat:22.4589281806917, lng:114.23468934842278},{lat:22.458412862794447, lng:114.26901662478122},{lat:22.397616506907493, lng:114.28724490026275},{lat:22.354160693509428, lng:114.23917572196079}])
labels.push({position: {lat: 22.3449288, lng: 114.1843615}, label: "Lion Rock Park", map: map})
polygons.push([{lat:22.302858344563678, lng:114.17350080429868},{lat:22.302116339773356, lng:114.17762766621509},{lat:22.32454699904915, lng:114.24494736781716},{lat:22.354160693509428, lng:114.23917572196079},{lat:22.398682564276292, lng:114.19192718225281},{lat:22.318301245200182, lng:114.14840667288499},{lat:22.302858344563678, lng:114.17350080429868}])
labels.push({position: {lat: 22.26368, lng: 113.927879}, label: "Lantau North Country Park & Extension", map: map})
polygons.push([{lat:-32.13494092441034, lng:15.9291359407018},{lat:-72.34785349578651, lng:11.843905119351506},{lat:-82.66996701087496, lng:6.269019216002693},{lat:22.3437202552429, lng:113.96829740271131},{lat:37.314227021249636, lng:31.519813925895697},{lat:-32.13494092441034, lng:15.9291359407018}])
labels.push({position: {lat: 22.29869, lng: 114.303528}, label: "Clear Water Bay Country Park", map: map})
polygons.push([{lat:2.057842315554155, lng:159.03564529509052},{lat:22.33967291255975, lng:114.36812564373322},{lat:22.324215835015917, lng:114.24537416147771},{lat:22.293734337264134, lng:114.25536004614474},{lat:-38.19599547820988, lng:157.36600521225526},{lat:2.057842315554155, lng:159.03564529509052}])
labels.push({position: {lat: 22.3632148, lng: 114.2940282}, label: "Kiu Tsui Country Park", map: map})
polygons.push([{lat:22.33967291255975, lng:114.36812564373322},{lat:22.324215835015917, lng:114.24537416147771},{lat:22.32454699904915, lng:114.24494736781716},{lat:22.354160693509428, lng:114.23917572196079},{lat:22.397616506907493, lng:114.28724490026275},{lat:22.38884173345438, lng:114.31556452026008},{lat:22.33967291255975, lng:114.36812564373322}])
labels.push({position: {lat: 22.4212938, lng: 114.3150803}, label: "Sai Kung West Country Park", map: map})
polygons.push([{lat:22.466509373225676, lng:114.28277327226152},{lat:22.437733731950733, lng:114.34136064648486},{lat:22.38884173345438, lng:114.31556452026008},{lat:22.397616506907493, lng:114.28724490026275},{lat:22.458412862794447, lng:114.26901662478122},{lat:22.466509373225676, lng:114.28277327226152}])
labels.push({position: {lat: 22.4095063, lng: 114.032065}, label: "Tai Lam Country Park (Tai Tong)", map: map})
polygons.push([{lat:44.74239655140415, lng:34.098455274510876},{lat:50.71300886177914, lng:43.354862915889164},{lat:22.43355829773313, lng:114.07097767631576},{lat:22.331503846109037, lng:114.06509172241077},{lat:22.330430596497266, lng:114.06457421380719},{lat:22.321558348093664, lng:114.05136157445271},{lat:22.3437202552429, lng:113.96829740271131},{lat:37.314227021249636, lng:31.519813925895697},{lat:44.74239655140415, lng:34.098455274510876}])
labels.push({position: {lat: 22.489695, lng: 114.1839}, label: "Pat Sin Leng Country Park", map: map})
polygons.push([{lat:23.37650189831906, lng:113.86981859918716},{lat:22.4589281806917, lng:114.23468934842278},{lat:22.422374657588584, lng:114.17982285304032},{lat:22.423030012158037, lng:114.17691739882471},{lat:22.442039565003455, lng:114.15268366111609},{lat:23.37650189831906, lng:113.86981859918716}])
labels.push({position: {lat: 22.4084695, lng: 114.3435211}, label: "Sai Kung East Country Park", map: map})
polygons.push([{lat:2.057842315554155, lng:159.03564529509052},{lat:22.33967291255975, lng:114.36812564373322},{lat:22.38884173345438, lng:114.31556452026008},{lat:22.437733731950733, lng:114.34136064648486},{lat:17.546636156960687, lng:159.6262381652446},{lat:2.057842315554155, lng:159.03564529509052}])
labels.push({position: {lat: 22.4679841, lng: 114.0993435}, label: "Lam Tsuen Country Park", map: map})
polygons.push([{lat:59.86490003508156, lng:72.68943828311056},{lat:60.88247389116019, lng:89.64253438227861},{lat:23.37650189831906, lng:113.86981859918716},{lat:22.442039565003455, lng:114.15268366111609},{lat:22.43355829773313, lng:114.07097767631576},{lat:50.71300886177914, lng:43.354862915889164},{lat:59.86490003508156, lng:72.68943828311056}])
labels.push({position: {lat: 22.2566406, lng: 113.9843988}, label: "Lantau South Country Park", map: map})
polygons.push([{lat:-84.9403020620095, lng:1.959909269666738},{lat:-82.66996701087496, lng:6.269019216002693},{lat:22.3437202552429, lng:113.96829740271131},{lat:22.321558348093664, lng:114.05136157445271},{lat:22.234377988837352, lng:114.06528157403147},{lat:22.034069076875245, lng:114.08041629788917},{lat:21.675042217029798, lng:114.08830268458955},{lat:-87.72736242654355, lng:97.54179546552668},{lat:-84.9403020620095, lng:1.959909269666738}])
labels.push({position: {lat: 22.5126913, lng: 114.252098}, label: "Plover Cove Country Park", map: map})
polygons.push([{lat:60.88247389116019, lng:89.64253438227861},{lat:23.37650189831906, lng:113.86981859918716},{lat:22.4589281806917, lng:114.23468934842278},{lat:22.458412862794447, lng:114.26901662478122},{lat:22.466509373225676, lng:114.28277327226152},{lat:49.5969124939762, lng:138.31438921236722},{lat:60.88247389116019, lng:89.64253438227861}])
labels.push({position: {lat: 22.2600871, lng: 114.1665406}, label: "Aberdeen Country Park", map: map})
polygons.push([{lat:21.675042217029798, lng:114.08830268458955},{lat:22.268461595867745, lng:114.18881462797246},{lat:22.302116339773356, lng:114.17762766621509},{lat:22.302858344563678, lng:114.17350080429868},{lat:22.283240733152706, lng:114.16065928266588},{lat:22.034069076875245, lng:114.08041629788917},{lat:21.675042217029798, lng:114.08830268458955}])
labels.push({position: {lat: 22.405816, lng: 114.106901}, label: "Tai Mo Shan Country Park", map: map})
polygons.push([{lat:22.442039565003455, lng:114.15268366111609},{lat:22.423030012158037, lng:114.17691739882471},{lat:22.331503846109037, lng:114.06509172241077},{lat:22.43355829773313, lng:114.07097767631576},{lat:22.442039565003455, lng:114.15268366111609}])
labels.push({position: {lat: 22.2668596, lng: 114.1420242}, label: "Pok Fu Lam Country Park", map: map})
polygons.push([{lat:22.234377988837352, lng:114.06528157403147},{lat:22.283240733152706, lng:114.16065928266588},{lat:22.034069076875245, lng:114.08041629788917},{lat:22.234377988837352, lng:114.06528157403147}])
labels.push({position: {lat: 22.2541596, lng: 114.2072313}, label: "Tai Tam Country Park", map: map})
polygons.push([{lat:-87.27631357393234, lng:111.84507617278285},{lat:22.261292809641695, lng:114.21996916057789},{lat:22.268461595867745, lng:114.18881462797246},{lat:21.675042217029798, lng:114.08830268458955},{lat:-87.72736242654355, lng:97.54179546552668},{lat:-87.27631357393234, lng:111.84507617278285}])
labels.push({position: {lat: 22.2541104, lng: 114.2326747}, label: "Shek O Country Park", map: map})
polygons.push([{lat:-38.19599547820988, lng:157.36600521225526},{lat:22.293734337264134, lng:114.25536004614474},{lat:22.261292809641695, lng:114.21996916057789},{lat:-87.27631357393234, lng:111.84507617278285},{lat:-38.19599547820988, lng:157.36600521225526}])
labels.push({position: {lat: 37.7915959, lng: -105.5943276}, label: "Great Sand Dunes National Park and Preserve", map: map})
polygons.push([{lat:37.90780531958431, lng:-95.80682337255055},{lat:39.00514750204267, lng:-98.63024514367432},{lat:39.05546751880367, lng:-106.14290253604842},{lat:37.542128057174814, lng:-107.04037959499104},{lat:34.821279415745394, lng:-106.22404809679212},{lat:35.7433455695499, lng:-95.91213431962183},{lat:37.90780531958431, lng:-95.80682337255055}])
labels.push({position: {lat: 67.3356197, lng: -159.1243161}, label: "Kobuk Valley National Park", map: map})
polygons.push([{lat:59.86490003508156, lng:72.68943828311056},{lat:50.71300886177914, lng:43.354862915889164},{lat:44.74239655140415, lng:34.098455274510876},{lat:74.46204170776711, lng:-50.07348163068974},{lat:73.77247406915994, lng:-72.86658445692842},{lat:69.96716801967831, lng:-97.53911570056785},{lat:64.14221964736545, lng:-158.07300559096444},{lat:59.86490003508156, lng:72.68943828311056}])
labels.push({position: {lat: 60.04377640000001, lng: -149.8163645}, label: "Kenai Fjords National Park", map: map})
polygons.push([{lat:38.41043400935151, lng:179.30695171291606},{lat:59.804213898281475, lng:-162.20625291373796},{lat:61.59417345300508, lng:-123.4102970686369},{lat:56.36795655130763, lng:-132.07383032609508},{lat:42.79028585881622, lng:-147.29243407834878},{lat:39.56398602137158, lng:-150.92926031398213},{lat:38.41043400935151, lng:179.30695171291606}])
labels.push({position: {lat: 36.4905655, lng: -121.1824925}, label: "Pinnacles National Park", map: map})
polygons.push([{lat:26.67991174502454, lng:-138.09301624897427},{lat:35.472238166638675, lng:-119.87659478697158},{lat:36.802303576649386, lng:-119.87332201297028},{lat:38.46217484303644, lng:-122.10223746408977},{lat:38.37262025786793, lng:-123.86560528349773},{lat:30.246589435198146, lng:-140.46814804962264},{lat:26.67991174502454, lng:-138.09301624897427}])
labels.push({position: {lat: 63.1148002, lng: -151.1926057}, label: "Denali National Park and Preserve", map: map})
polygons.push([{lat:64.14221964736545, lng:-158.07300559096444},{lat:59.804213898281475, lng:-162.20625291373796},{lat:61.59417345300508, lng:-123.4102970686369},{lat:63.58649931134259, lng:-117.46124321365785},{lat:68.1376033828213, lng:-102.26465189079406},{lat:69.96716801967831, lng:-97.53911570056785},{lat:64.14221964736545, lng:-158.07300559096444}])
labels.push({position: {lat: 25.2866155, lng: -80.89865089999999}, label: "Everglades National Park", map: map})
polygons.push([{lat:-3.733917317735096, lng:-71.8371424720711},{lat:29.547745859525968, lng:-82.05758629708815},{lat:29.538217399514938, lng:-83.82639403197614},{lat:-3.733917317735096, lng:-71.8371424720711}])
labels.push({position: {lat: 47.8021067, lng: -123.6043524}, label: "Olympic National Park", map: map})
polygons.push([{lat:42.79028585881622, lng:-147.29243407834878},{lat:44.561784526213756, lng:-127.53101652422968},{lat:45.002575262962054, lng:-125.0328165905126},{lat:47.88170752422899, lng:-122.07553357493269},{lat:56.36795655130763, lng:-132.07383032609508},{lat:42.79028585881622, lng:-147.29243407834878}])
labels.push({position: {lat: 37.8651011, lng: -119.5383294}, label: "Yosemite National Park", map: map})
polygons.push([{lat:38.46217484303644, lng:-122.10223746408977},{lat:40.35082924402735, lng:-117.61902618175412},{lat:38.639702469078934, lng:-117.00451567793446},{lat:37.70451980416804, lng:-117.84694444770187},{lat:36.802303576649386, lng:-119.87332201297028},{lat:38.46217484303644, lng:-122.10223746408977}])
labels.push({position: {lat: 29.1274869, lng: -103.2425379}, label: "Big Bend National Park", map: map})
polygons.push([{lat:-46.734795471677394, lng:-112.94945124773861},{lat:29.164406046483652, lng:-92.30368235837015},{lat:33.152598750171855, lng:-94.86611260833101},{lat:29.25032687893112, lng:-107.95101017956648},{lat:-7.217566457537222, lng:-123.38009472188594},{lat:-46.734795471677394, lng:-112.94945124773861}])
labels.push({position: {lat: 47.9762581, lng: -88.9312613}, label: "Isle Royale National Park", map: map})
polygons.push([{lat:74.46204170776711, lng:-50.07348163068974},{lat:73.77247406915994, lng:-72.86658445692842},{lat:41.73471148264225, lng:-92.57094859185148},{lat:42.356439898919824, lng:-88.97192256375874},{lat:48.29886503764247, lng:-77.60657121858542},{lat:74.46204170776711, lng:-50.07348163068974}])
labels.push({position: {lat: 48.7718174, lng: -121.2984648}, label: "North Cascades National Park", map: map})
polygons.push([{lat:47.348722268972544, lng:-117.54767391194872},{lat:47.88170752422899, lng:-122.07553357493269},{lat:56.36795655130763, lng:-132.07383032609508},{lat:61.59417345300508, lng:-123.4102970686369},{lat:63.58649931134259, lng:-117.46124321365785},{lat:47.348722268972544, lng:-117.54767391194872}])
labels.push({position: {lat: 38.3268693, lng: -109.8782592}, label: "Canyonlands National Park", map: map})
polygons.push([{lat:38.10423993481591, lng:-108.76172405610296},{lat:38.87385607578083, lng:-110.5447663345421},{lat:37.148244033205884, lng:-110.62537223873744},{lat:36.89128544833038, lng:-110.4975037544961},{lat:36.80000213543574, lng:-110.3569286653928},{lat:38.10423993481591, lng:-108.76172405610296}])
labels.push({position: {lat: 40.3427932, lng: -105.6836389}, label: "Rocky Mountain National Park", map: map})
polygons.push([{lat:39.00514750204267, lng:-98.63024514367432},{lat:40.79453966132085, lng:-101.6403107474025},{lat:42.94617480110041, lng:-107.22608913763702},{lat:41.66502345995224, lng:-109.17709380824583},{lat:40.586990809766384, lng:-108.3888919913138},{lat:39.05546751880367, lng:-106.14290253604842},{lat:39.00514750204267, lng:-98.63024514367432}])
labels.push({position: {lat: 48.4840955, lng: -92.8270873}, label: "Voyageurs National Park", map: map})
polygons.push([{lat:41.73471148264225, lng:-92.57094859185148},{lat:73.77247406915994, lng:-72.86658445692842},{lat:69.96716801967831, lng:-97.53911570056785},{lat:68.1376033828213, lng:-102.26465189079406},{lat:59.14948567203344, lng:-102.88445936063891},{lat:46.26132946464477, lng:-97.77697347161444},{lat:41.45654013042781, lng:-93.33803385621606},{lat:41.73471148264225, lng:-92.57094859185148}])
labels.push({position: {lat: 38.29275579999999, lng: -78.6795836}, label: "Shenandoah National Park", map: map})
polygons.push([{lat:29.676806635696245, lng:-63.662151582720774},{lat:36.27786500900113, lng:-80.52313194276486},{lat:37.58032202860247, lng:-81.65996722775164},{lat:41.705983387336204, lng:-76.54808237539547},{lat:42.52970694754619, lng:-74.88342935436889},{lat:29.676806635696245, lng:-63.662151582720774}])
labels.push({position: {lat: 42.8684411, lng: -122.1684785}, label: "Crater Lake National Park", map: map})
polygons.push([{lat:45.002575262962054, lng:-125.0328165905126},{lat:44.453895023344906, lng:-116.62659170089157},{lat:43.04717970768097, lng:-116.26276276663675},{lat:42.439231019164005, lng:-116.82735425367245},{lat:41.5827261581828, lng:-122.35287900927015},{lat:44.561784526213756, lng:-127.53101652422968},{lat:45.002575262962054, lng:-125.0328165905126}])
labels.push({position: {lat: 37.2982022, lng: -113.0263005}, label: "Zion National Park", map: map})
polygons.push([{lat:37.39793531959532, lng:-115.21094659830736},{lat:35.70709508961651, lng:-114.69833161694393},{lat:35.66192683022065, lng:-114.61649700353017},{lat:36.845916294149696, lng:-112.2757493528096},{lat:38.383059109544334, lng:-113.13695997005841},{lat:37.39793531959532, lng:-115.21094659830736}])
labels.push({position: {lat: 41.2131788, lng: -124.0046275}, label: "Redwood National and State Parks", map: map})
polygons.push([{lat:30.246589435198146, lng:-140.46814804962264},{lat:38.37262025786793, lng:-123.86560528349773},{lat:41.5827261581828, lng:-122.35287900927015},{lat:44.561784526213756, lng:-127.53101652422968},{lat:42.79028585881622, lng:-147.29243407834878},{lat:39.56398602137158, lng:-150.92926031398213},{lat:30.246589435198146, lng:-140.46814804962264}])
labels.push({position: {lat: 38.733081, lng: -109.5925139}, label: "Arches National Park", map: map})
polygons.push([{lat:38.10423993481591, lng:-108.76172405610296},{lat:38.113613865280925, lng:-108.74150553101157},{lat:40.586990809766384, lng:-108.3888919913138},{lat:41.66502345995224, lng:-109.17709380824583},{lat:41.43186228765939, lng:-111.50763833121947},{lat:38.87385607578083, lng:-110.5447663345421},{lat:38.10423993481591, lng:-108.76172405610296}])
labels.push({position: {lat: 37.2308729, lng: -108.4618335}, label: "Mesa Verde National Park", map: map})
polygons.push([{lat:34.821279415745394, lng:-106.22404809679212},{lat:33.98948310866766, lng:-107.8035419811317},{lat:34.57159179303994, lng:-109.31843389985829},{lat:36.80000213543574, lng:-110.3569286653928},{lat:38.10423993481591, lng:-108.76172405610296},{lat:38.113613865280925, lng:-108.74150553101157},{lat:37.542128057174814, lng:-107.04037959499104},{lat:34.821279415745394, lng:-106.22404809679212}])
labels.push({position: {lat: 32.1478553, lng: -104.5567138}, label: "Carlsbad Caverns National Park", map: map})
polygons.push([{lat:34.821279415745394, lng:-106.22404809679212},{lat:33.98948310866766, lng:-107.8035419811317},{lat:29.25032687893112, lng:-107.95101017956648},{lat:33.152598750171855, lng:-94.86611260833101},{lat:35.7433455695499, lng:-95.91213431962183},{lat:34.821279415745394, lng:-106.22404809679212}])
labels.push({position: {lat: 37.5930377, lng: -112.1870895}, label: "Bryce Canyon National Park", map: map})
polygons.push([{lat:38.383059109544334, lng:-113.13695997005841},{lat:36.845916294149696, lng:-112.2757493528096},{lat:36.89128544833038, lng:-110.4975037544961},{lat:37.148244033205884, lng:-110.62537223873744},{lat:38.73450329775023, lng:-112.75770840578701},{lat:38.383059109544334, lng:-113.13695997005841}])
labels.push({position: {lat: 25.4824229, lng: -80.20831030000001}, label: "Biscayne National Park", map: map})
polygons.push([{lat:-32.13494092441034, lng:15.9291359407018},{lat:-72.34785349578651, lng:11.843905119351506},{lat:-3.733917317735096, lng:-71.8371424720711},{lat:29.547745859525968, lng:-82.05758629708815},{lat:29.42738293227679, lng:-63.41109104712769},{lat:-32.13494092441034, lng:15.9291359407018}])
labels.push({position: {lat: 34.0069361, lng: -119.778533}, label: "Channel Islands National Park", map: map})
polygons.push([{lat:-5.420864977347224, lng:-123.92199029248951},{lat:21.534625701372203, lng:-118.3882882711995},{lat:34.7860195502326, lng:-117.7962481412265},{lat:35.472238166638675, lng:-119.87659478697158},{lat:26.67991174502454, lng:-138.09301624897427},{lat:-5.420864977347224, lng:-123.92199029248951}])
labels.push({position: {lat: 44.3385559, lng: -68.2733346}, label: "Acadia National Park", map: map})
polygons.push([{lat:-32.13494092441034, lng:15.9291359407018},{lat:29.42738293227679, lng:-63.41109104712769},{lat:29.676806635696245, lng:-63.662151582720774},{lat:42.52970694754619, lng:-74.88342935436889},{lat:48.29886503764247, lng:-77.60657121858542},{lat:74.46204170776711, lng:-50.07348163068974},{lat:44.74239655140415, lng:34.098455274510876},{lat:37.314227021249636, lng:31.519813925895697},{lat:-32.13494092441034, lng:15.9291359407018}])
labels.push({position: {lat: 38.3669703, lng: -111.2615042}, label: "Capitol Reef National Park", map: map})
polygons.push([{lat:41.449054806099504, lng:-111.81478509267356},{lat:38.73450329775023, lng:-112.75770840578701},{lat:37.148244033205884, lng:-110.62537223873744},{lat:38.87385607578083, lng:-110.5447663345421},{lat:41.43186228765939, lng:-111.50763833121947},{lat:41.449054806099504, lng:-111.81478509267356}])
labels.push({position: {lat: 38.98333299999999, lng: -114.3}, label: "Great Basin National Park", map: map})
polygons.push([{lat:40.35082924402735, lng:-117.61902618175412},{lat:38.639702469078934, lng:-117.00451567793446},{lat:37.39793531959532, lng:-115.21094659830736},{lat:38.383059109544334, lng:-113.13695997005841},{lat:38.73450329775023, lng:-112.75770840578701},{lat:41.449054806099504, lng:-111.81478509267356},{lat:43.04717970768097, lng:-116.26276276663675},{lat:42.439231019164005, lng:-116.82735425367245},{lat:40.35082924402735, lng:-117.61902618175412}])
labels.push({position: {lat: 65.9258669, lng: -164.4377877}, label: "Bering Land Bridge National Preserve", map: map})
polygons.push([{lat:59.86490003508156, lng:72.68943828311056},{lat:60.88247389116019, lng:89.64253438227861},{lat:49.5969124939762, lng:138.31438921236722},{lat:30.349814403777557, lng:160.20497442153072},{lat:38.41043400935151, lng:179.30695171291606},{lat:59.804213898281475, lng:-162.20625291373796},{lat:64.14221964736545, lng:-158.07300559096444},{lat:59.86490003508156, lng:72.68943828311056}])
labels.push({position: {lat: 24.628477, lng: -82.87318739999999}, label: "Dry Tortugas National Park", map: map})
polygons.push([{lat:-72.34785349578651, lng:11.843905119351506},{lat:-3.733917317735096, lng:-71.8371424720711},{lat:29.538217399514938, lng:-83.82639403197614},{lat:29.936182664277833, lng:-86.54026427112863},{lat:29.60770932856097, lng:-90.51347128584645},{lat:29.164406046483652, lng:-92.30368235837015},{lat:-46.734795471677394, lng:-112.94945124773861},{lat:-84.9403020620095, lng:1.959909269666738},{lat:-82.66996701087496, lng:6.269019216002693},{lat:-72.34785349578651, lng:11.843905119351506}])
labels.push({position: {lat: 38.5753936, lng: -107.7415961}, label: "Black Canyon of the Gunnison National Park", map: map})
polygons.push([{lat:39.05546751880367, lng:-106.14290253604842},{lat:40.586990809766384, lng:-108.3888919913138},{lat:38.113613865280925, lng:-108.74150553101157},{lat:37.542128057174814, lng:-107.04037959499104},{lat:39.05546751880367, lng:-106.14290253604842}])
labels.push({position: {lat: 33.7948001, lng: -80.7820962}, label: "Congaree National Park", map: map})
polygons.push([{lat:29.538217399514938, lng:-83.82639403197614},{lat:29.547745859525968, lng:-82.05758629708815},{lat:29.42738293227679, lng:-63.41109104712769},{lat:29.676806635696245, lng:-63.662151582720774},{lat:36.27786500900113, lng:-80.52313194276486},{lat:29.936182664277833, lng:-86.54026427112863},{lat:29.538217399514938, lng:-83.82639403197614}])
labels.push({position: {lat: 41.2808248, lng: -81.56781199999999}, label: "Cuyahoga Valley National Park", map: map})
polygons.push([{lat:42.356439898919824, lng:-88.97192256375874},{lat:48.29886503764247, lng:-77.60657121858542},{lat:42.52970694754619, lng:-74.88342935436889},{lat:41.705983387336204, lng:-76.54808237539547},{lat:39.731450528555875, lng:-84.62618456303944},{lat:42.356439898919824, lng:-88.97192256375874}])
labels.push({position: {lat: 36.5053891, lng: -117.0794078}, label: "Death Valley National Park", map: map})
polygons.push([{lat:37.39793531959532, lng:-115.21094659830736},{lat:35.70709508961651, lng:-114.69833161694393},{lat:34.7906406061399, lng:-117.7895729924517},{lat:37.70451980416804, lng:-117.84694444770187},{lat:38.639702469078934, lng:-117.00451567793446},{lat:37.39793531959532, lng:-115.21094659830736}])
labels.push({position: {lat: 35.6117644, lng: -83.4895449}, label: "Great Smoky Mountains National Park", map: map})
polygons.push([{lat:29.60770932856097, lng:-90.51347128584645},{lat:38.10735222265222, lng:-83.15071216672168},{lat:37.58032202860247, lng:-81.65996722775164},{lat:36.27786500900113, lng:-80.52313194276486},{lat:29.936182664277833, lng:-86.54026427112863},{lat:29.60770932856097, lng:-90.51347128584645}])
labels.push({position: {lat: 33.873415, lng: -115.9009923}, label: "Joshua Tree National Park", map: map})
polygons.push([{lat:21.534625701372203, lng:-118.3882882711995},{lat:34.7860195502326, lng:-117.7962481412265},{lat:34.7906406061399, lng:-117.7895729924517},{lat:35.70709508961651, lng:-114.69833161694393},{lat:35.66192683022065, lng:-114.61649700353017},{lat:33.94125118054633, lng:-113.11252286950638},{lat:21.534625701372203, lng:-118.3882882711995}])
labels.push({position: {lat: 37.1869978, lng: -86.100528}, label: "Mammoth Cave National Park", map: map})
polygons.push([{lat:29.60770932856097, lng:-90.51347128584645},{lat:38.10735222265222, lng:-83.15071216672168},{lat:39.731450528555875, lng:-84.62618456303944},{lat:42.356439898919824, lng:-88.97192256375874},{lat:41.73471148264225, lng:-92.57094859185148},{lat:41.45654013042781, lng:-93.33803385621606},{lat:37.90780531958431, lng:-95.80682337255055},{lat:35.7433455695499, lng:-95.91213431962183},{lat:33.152598750171855, lng:-94.86611260833101},{lat:29.164406046483652, lng:-92.30368235837015},{lat:29.60770932856097, lng:-90.51347128584645}])
labels.push({position: {lat: 46.8799663, lng: -121.7269094}, label: "Mount Rainier National Park", map: map})
polygons.push([{lat:44.99772342706395, lng:-116.38933032209341},{lat:47.348722268972544, lng:-117.54767391194872},{lat:47.88170752422899, lng:-122.07553357493269},{lat:45.002575262962054, lng:-125.0328165905126},{lat:44.453895023344906, lng:-116.62659170089157},{lat:44.99772342706395, lng:-116.38933032209341}])
labels.push({position: {lat: 32.2967359, lng: -111.166615}, label: "Saguaro National Park", map: map})
polygons.push([{lat:-5.420864977347224, lng:-123.92199029248951},{lat:21.534625701372203, lng:-118.3882882711995},{lat:33.94125118054633, lng:-113.11252286950638},{lat:34.57159179303994, lng:-109.31843389985829},{lat:33.98948310866766, lng:-107.8035419811317},{lat:29.25032687893112, lng:-107.95101017956648},{lat:-7.217566457537222, lng:-123.38009472188594},{lat:-5.420864977347224, lng:-123.92199029248951}])
labels.push({position: {lat: 44.427963, lng: -110.588455}, label: "Yellowstone National Park", map: map})
polygons.push([{lat:47.72840697476103, lng:-108.67314392492564},{lat:45.18977758903505, lng:-106.72621683893036},{lat:42.94617480110041, lng:-107.22608913763702},{lat:41.66502345995224, lng:-109.17709380824583},{lat:41.43186228765939, lng:-111.50763833121947},{lat:41.449054806099504, lng:-111.81478509267356},{lat:43.04717970768097, lng:-116.26276276663675},{lat:44.453895023344906, lng:-116.62659170089157},{lat:44.99772342706395, lng:-116.38933032209341},{lat:47.72840697476103, lng:-108.67314392492564}])
labels.push({position: {lat: 19.4193697, lng: -155.2884969}, label: "Hawaiʻi Volcanoes National Park", map: map})
polygons.push([{lat:38.41043400935151, lng:179.30695171291606},{lat:39.56398602137158, lng:-150.92926031398213},{lat:30.246589435198146, lng:-140.46814804962264},{lat:26.67991174502454, lng:-138.09301624897427},{lat:-5.420864977347224, lng:-123.92199029248951},{lat:-7.217566457537222, lng:-123.38009472188594},{lat:-46.734795471677394, lng:-112.94945124773861},{lat:-84.9403020620095, lng:1.959909269666738},{lat:-87.72736242654355, lng:97.54179546552668},{lat:-87.27631357393234, lng:111.84507617278285},{lat:-38.19599547820988, lng:157.36600521225526},{lat:2.057842315554155, lng:159.03564529509052},{lat:17.546636156960687, lng:159.6262381652446},{lat:30.349814403777557, lng:160.20497442153072},{lat:38.41043400935151, lng:179.30695171291606}])
labels.push({position: {lat: 43.8553804, lng: -102.3396912}, label: "Badlands National Park", map: map})
polygons.push([{lat:37.90780531958431, lng:-95.80682337255055},{lat:39.00514750204267, lng:-98.63024514367432},{lat:40.79453966132085, lng:-101.6403107474025},{lat:45.28975050399862, lng:-103.59341998372281},{lat:46.26132946464477, lng:-97.77697347161444},{lat:41.45654013042781, lng:-93.33803385621606},{lat:37.90780531958431, lng:-95.80682337255055}])
labels.push({position: {lat: 46.978965, lng: -103.5387091}, label: "Theodore Roosevelt National Park", map: map})
polygons.push([{lat:47.72840697476103, lng:-108.67314392492564},{lat:59.14948567203344, lng:-102.88445936063891},{lat:46.26132946464477, lng:-97.77697347161444},{lat:45.28975050399862, lng:-103.59341998372281},{lat:45.18977758903505, lng:-106.72621683893036},{lat:47.72840697476103, lng:-108.67314392492564}])
labels.push({position: {lat: 43.6045811, lng: -103.4213433}, label: "Wind Cave National Park", map: map})
polygons.push([{lat:42.94617480110041, lng:-107.22608913763702},{lat:40.79453966132085, lng:-101.6403107474025},{lat:45.28975050399862, lng:-103.59341998372281},{lat:45.18977758903505, lng:-106.72621683893036},{lat:42.94617480110041, lng:-107.22608913763702}])
labels.push({position: {lat: 48.7596128, lng: -113.7870225}, label: "Glacier National Park", map: map})
polygons.push([{lat:47.72840697476103, lng:-108.67314392492564},{lat:59.14948567203344, lng:-102.88445936063891},{lat:68.1376033828213, lng:-102.26465189079406},{lat:63.58649931134259, lng:-117.46124321365785},{lat:47.348722268972544, lng:-117.54767391194872},{lat:44.99772342706395, lng:-116.38933032209341},{lat:47.72840697476103, lng:-108.67314392492564}])
labels.push({position: {lat: 36.4863668, lng: -118.5657516}, label: "Sequoia National Park", map: map})
polygons.push([{lat:35.472238166638675, lng:-119.87659478697158},{lat:34.7860195502326, lng:-117.7962481412265},{lat:34.7906406061399, lng:-117.7895729924517},{lat:37.70451980416804, lng:-117.84694444770187},{lat:36.802303576649386, lng:-119.87332201297028},{lat:35.472238166638675, lng:-119.87659478697158}])
labels.push({position: {lat: 40.49766, lng: -121.4206552}, label: "Lassen Volcanic National Park", map: map})
polygons.push([{lat:38.37262025786793, lng:-123.86560528349773},{lat:41.5827261581828, lng:-122.35287900927015},{lat:42.439231019164005, lng:-116.82735425367245},{lat:40.35082924402735, lng:-117.61902618175412},{lat:38.46217484303644, lng:-122.10223746408977},{lat:38.37262025786793, lng:-123.86560528349773}])
labels.push({position: {lat: 39.9820723, lng: -81.0009199}, label: "Dysart Woods Park", map: map})
polygons.push([{lat:38.10735222265222, lng:-83.15071216672168},{lat:37.58032202860247, lng:-81.65996722775164},{lat:41.705983387336204, lng:-76.54808237539547},{lat:39.731450528555875, lng:-84.62618456303944},{lat:38.10735222265222, lng:-83.15071216672168}])
labels.push({position: {lat: 36.1069652, lng: -112.1129972}, label: "Grand Canyon National Park", map: map})
polygons.push([{lat:36.845916294149696, lng:-112.2757493528096},{lat:36.89128544833038, lng:-110.4975037544961},{lat:36.80000213543574, lng:-110.3569286653928},{lat:34.57159179303994, lng:-109.31843389985829},{lat:33.94125118054633, lng:-113.11252286950638},{lat:35.66192683022065, lng:-114.61649700353017},{lat:36.845916294149696, lng:-112.2757493528096}])
labels.push({position: {lat: 22.467066, lng: 114.341406}, label: "Sai Kung West Country Park (Wan Tsai Extension)", map: map})
polygons.push([{lat:49.5969124939762, lng:138.31438921236722},{lat:22.466509373225676, lng:114.28277327226152},{lat:22.437733731950733, lng:114.34136064648486},{lat:17.546636156960687, lng:159.6262381652446},{lat:30.349814403777557, lng:160.20497442153072},{lat:49.5969124939762, lng:138.31438921236722}])
labels.push({position: {lat: 22.2731174, lng: 114.2123255}, label: "Tai Tam Country Park Quarry Bay Extension Section", map: map})
polygons.push([{lat:22.293734337264134, lng:114.25536004614474},{lat:22.324215835015917, lng:114.24537416147771},{lat:22.32454699904915, lng:114.24494736781716},{lat:22.302116339773356, lng:114.17762766621509},{lat:22.268461595867745, lng:114.18881462797246},{lat:22.261292809641695, lng:114.21996916057789},{lat:22.293734337264134, lng:114.25536004614474}])
labels.push({position: {lat: 22.277335, lng: 114.1357605}, label: "Lung Fu Shan Country Park", map: map})
polygons.push([{lat:22.321558348093664, lng:114.05136157445271},{lat:22.234377988837352, lng:114.06528157403147},{lat:22.283240733152706, lng:114.16065928266588},{lat:22.302858344563678, lng:114.17350080429868},{lat:22.318301245200182, lng:114.14840667288499},{lat:22.330430596497266, lng:114.06457421380719},{lat:22.321558348093664, lng:114.05136157445271}])
function makePolygon(polyCoords, polyLabel, labelCoords) {
var marker = new google.maps.Marker({
position: labelCoords,
draggable: false,
raiseOnDrag: false,
map: map,
label: polyLabel,
labelStyle: {opacity: 1.0},
visible: false,
});
var poly = new google.maps.Polygon({
paths: polyCoords,
strokeColor: '#FF0000',
strokeOpacity: 0.8,
strokeWeight: 2,
fillOpacity: 0.0,
map: map
});
google.maps.event.addListener(poly, "mousemove", function(event) {
marker.setVisible(true);
});
google.maps.event.addListener(poly, "mouseout", function(event) {
marker.setVisible(false);
});
}
for (var i = 0; i < polygons.length; i++) {
makePolygon(polygons[i], labels[i]['label'], labels[i]['position']);
}
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBBEFX6dJmQ4LOTJfIXAF17_M_9PmsWFR4&callback=initMap">
</script>
</body>
</html>