-
Notifications
You must be signed in to change notification settings - Fork 0
/
world_map.php
540 lines (453 loc) · 66.9 KB
/
world_map.php
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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
<?php
require 'navigationbar.php';
require 'db.php';
//require 'regionborders.php';
require_once 'purifier/library/HTMLPurifier.auto.php';
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
/* Displays user information and some useful messages */
//session_start();
// Check if user is logged in using the session variable
//if (isset($_SESSION['logged_in'])) { $topic = $_GET["topic"]; } else { $topic=0; };
//$topic=$mysqli->escape_string($topic);
if ( isset($_SESSION['logged_in']) AND $_SESSION['logged_in'] != 1 ) {
//$_SESSION['message'] = "You must log in before viewing your profile page!";
//header("location: error.php");
$login = 0;
}
elseif(isset($_SESSION['logged_in']) AND $_SESSION['logged_in'] == 1) {
// Makes it easier to read
$username = $_SESSION['username'];
//$last_name = $_SESSION['last_name'];
$email = $_SESSION['email'];
$active = $_SESSION['active'];
$login = 1;
}else{
$login=0;
}
//html purifier setup
$config = HTMLPurifier_Config::createDefault();
$purifier = new HTMLPurifier($config);
$config->set('HTML.SafeIframe', true); //iframes
$config->set('URI.SafeIframeRegexp', '%^(https?:)?//(www\.youtube(?:-nocookie)?\.com/embed/|player\.vimeo\.com/video/)%');
?>
<!DOCTYPE html>
<html>
<head>
<title>Fantasy-Sim</title>
<meta name="description" content="Fantasy-Sim is a massively multiplayer online strategy game in which players can join a country community and join the economy, war and religion modules.">
<meta name="keywords" content="rts,realtime,strategy,game,fantasy,lotr,lord,of,the,rings,economy,politics,religion,countries,soicial,simulation,erepublik,online,mmo,massive,multiplayer,free,to,play,orc,human,elve,dwarf,war,political,economy">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/styletot.css">
<script type="text/javascript" src="tinymce/tinymce.js"></script>
<script>
tinymce.init({
selector: '#mytextarea',
plugins: ["emoticons autolink help preview textcolor"],
toolbar: [
'undo redo | styleselect | forecolor backcolor | bold italic | emoticons | alignleft aligncenter alignright | help | preview'
]
});
</script>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.4/dist/leaflet.css"
integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA=="
crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.3.4/dist/leaflet.js"
integrity="sha512-nMMmRyTVoLYqjP9hrbed9S+FzjZHW5gY1TWCHA5ckwXZBadntCNs8kEqAWdrb9O7rxbCaA4lKTIWjDXZxflOcA=="
crossorigin=""></script>
</head>
<body>
<div class="boxedtot">
<?php
//require 'ageing.php';
if($login == 1){
$result = $mysqli->query("SELECT * FROM users WHERE username='$username'") or die($mysqli->error());
$row = mysqli_fetch_array($result);
$moderator = $row['moderator'];
}else{
$moderator = 0;
}
?>
<?php
//create arrays voor variabelen
$latlngs = array();
$polygon = array();
$polygonreligion = array();
$polygonclimate = array();
$polygontemperature = array();
$polygonepidemic = array();
$polygonresource = array();
$regionnames = array();
$religionnames = array();
$climatenames = array();
$temperaturenames = array();
$epidemicnames = array();
$resourcenames = array();
$i=1;
while($i <= 26){
$i2 = strval($i);
$arraynumber = "latlngs";
$arraynumber .= $i2;
array_push($latlngs, $arraynumber);
$polygonnumber = "polygon";
$polygonnumber .= $i2;
array_push($polygon, $polygonnumber);
$polygonnumber = "polygonreligion";
$polygonnumber .= $i2;
array_push($polygonreligion, $polygonnumber);
$polygonnumber = "polygonclimate";
$polygonnumber .= $i2;
array_push($polygonclimate, $polygonnumber);
$polygonnumber = "polygontemperature";
$polygonnumber .= $i2;
array_push($polygontemperature, $polygonnumber);
$polygonnumber = "polygonepidemic";
$polygonnumber .= $i2;
array_push($polygonepidemic, $polygonnumber);
$polygonnumber = "polygonresource";
$polygonnumber .= $i2;
array_push($polygonresource, $polygonnumber);
$i++;
}
$result = $mysqli->query("SELECT * FROM region") or die($mysqli->error());
for ($set=array(); $row=$result->fetch_assoc(); $set[]=$row);
//set colors for curowner
$currownercolor = array();
$religioncolor = array();
$climatecolor = array();
$temperaturecolor = array();
$epidemiccolor = array();
$resourceccolor = array();
foreach ($set as $key => $value) {
$curowner[$key] = $value['curowner'];
if($curowner[$key] == "Buldihndan"){
$color = "red";
array_push($currownercolor, $color);
$regionname = "Buldihndan";
array_push($regionnames, $regionname);
}elseif($curowner[$key] == "Arbor lean"){
$color = "white";
array_push($currownercolor, $color);
$regionname = "Arbor lean";
array_push($regionnames, $regionname);
}elseif($curowner[$key] == "Orcmorsult"){
$color = "blue";
array_push($currownercolor, $color);
$regionname = "Orcmorsult";
array_push($regionnames, $regionname);
}elseif($curowner[$key] == "Arados"){
$color = "orange";
array_push($currownercolor, $color);
$regionname = "Arados";
array_push($regionnames, $regionname);
}elseif($curowner[$key] == "Sun cashai"){
$color = "green";
array_push($currownercolor, $color);
$regionname = "Sun cashai";
array_push($regionnames, $regionname);
}
$biggestrel[$key] = $value['biggestrel'];
if($biggestrel[$key] == "inter merata licilus"){
$color = "red";
array_push($religioncolor, $color);
$religionname = "inter merata licilus";
array_push($religionnames, $religionname);
}elseif($biggestrel[$key] == "banoinimh"){
$color = "yellow";
array_push($religioncolor, $color);
$religionname = "banoinimh";
array_push($religionnames, $religionname);
}elseif($biggestrel[$key] == "joruverism"){
$color = "blue";
array_push($religioncolor, $color);
$religionname = "joruverism";
array_push($religionnames, $religionname);
}elseif($biggestrel[$key] == NULL){
$color = "white";
array_push($religioncolor, $color);
$religionname = "none";
array_push($religionnames, $religionname);
}
$climate[$key] = $value['climate'];
if($climate[$key] == "temperate"){
$color = "brown";
array_push($climatecolor, $color);
$climatename = "temperate";
array_push($climatenames, $climatename);
}elseif($climate[$key] == "mountain"){
$color = "white";
array_push($climatecolor, $color);
$climatename = "mountain";
array_push($climatenames, $climatename);
}elseif($climate[$key] == "dessert"){
$color = "#e3e39c";
array_push($climatecolor, $color);
$climatename = "dessert";
array_push($climatenames, $climatename);
}elseif($climate[$key] == "sea"){
$color = "blue";
array_push($climatecolor, $color);
$climatename = "sea";
array_push($climatenames, $climatename);
}elseif($climate[$key] == "savanna"){
$color = "yellow";
array_push($climatecolor, $color);
$climatename = "savanna";
array_push($climatenames, $climatename);
}elseif($climate[$key] == "mediterranean"){
$color = "red";
array_push($climatecolor, $color);
$climatename = "mediterranean";
array_push($climatenames, $climatename);
}elseif($climate[$key] == "tropical"){
$color = "orange";
array_push($climatecolor, $color);
$climatename = "tropical";
array_push($climatenames, $climatename);
}
$currtemp[$key] = $value['currtemp'];
if($currtemp[$key] < -5){
$color = "#0a0070";
array_push($temperaturecolor, $color);
$temperaturename = $currtemp[$key];
array_push($temperaturenames, $temperaturename);
}elseif($currtemp[$key] >= -5 AND $currtemp[$key] <5){
$color = "#2e1ce8";
array_push($temperaturecolor, $color);
$temperaturename = $currtemp[$key];
array_push($temperaturenames, $temperaturename);
}elseif($currtemp[$key] >= 5 AND $currtemp[$key] <15){
$color = "#5a4ced";
array_push($temperaturecolor, $color);
$temperaturename = $currtemp[$key];
array_push($temperaturenames, $temperaturename);
}elseif($currtemp[$key] >= 15 AND $currtemp[$key] <25){
$color = "#ffcccb";
array_push($temperaturecolor, $color);
$temperaturename = $currtemp[$key];
array_push($temperaturenames, $temperaturename);
}elseif($currtemp[$key] >= 25 AND $currtemp[$key] <35){
$color = "#d43835";
array_push($temperaturecolor, $color);
$temperaturename = $currtemp[$key];
array_push($temperaturenames, $temperaturename);
}elseif($currtemp[$key] >= 35){
$color = "#7c0404";
array_push($temperaturecolor, $color);
$temperaturename = $currtemp[$key];
array_push($temperaturenames, $temperaturename);
}
$epidemic[$key] = $value['epidemic'];
if($epidemic[$key] == 1){
$color = "red";
array_push($epidemiccolor, $color);
$epidemicname = "epidemic";
array_push($epidemicnames, $epidemicname);
}else{
$color = "white";
array_push($epidemiccolor, $color);
$epidemicname = "none";
array_push($epidemicnames, $epidemicname);
}
$resource[$key] = $value['resource'];
if($resource[$key] == "iron"){
$color = "silver";
array_push($resourceccolor, $color);
$resourcename = $resource[$key];
array_push($resourcenames, $resourcename);
}elseif($resource[$key] == "papyrus"){
$color = "beige";
array_push($resourceccolor, $color);
$resourcename = $resource[$key];
array_push($resourcenames, $resourcename);
}elseif($resource[$key] == "stone"){
$color = "grey";
array_push($resourceccolor, $color);
$resourcename = $resource[$key];
array_push($resourcenames, $resourcename);
}elseif($resource[$key] == "primeval forest"){
$color = "green";
array_push($resourceccolor, $color);
$resourcename = $resource[$key];
array_push($resourcenames, $resourcename);
}elseif($resource[$key] == "farmland"){
$color = "yellow";
array_push($resourceccolor, $color);
$resourcename = $resource[$key];
array_push($resourcenames, $resourcename);
}
}
/*foreach ($polygonresource as $key) {
echo "$key";
}*/
?>
<div id = "map" style = "width: 100%; height: 850px">
<script>
// Creating a map object
var map = L.map('map', {
crs: L.CRS.Simple
});
//polygons
//var colors = ["red", "white"];
<?php $colors = array("red", "white"); ?>
var latlngs1 = [
[767.517825207078, 317.863566080729], [770.955771327498, 331.103759765625], [775.081312800028, 341.148091634115], [781.269640328894, 350.735900878906], [784.019991097201, 358.953959147135], [783.332426385228, 368.998291015625], [781.269640328894, 377.672973632812], [778.519289560586, 382.238566080729], [770.955771327498, 380.868896484375], [762.704719022575, 385.434509277344], [756.516360853571, 387.260762532552], [750.328063964844, 392.282897949219], [741.389355027532, 389.086975097656], [728.325165897967, 385.434509277344], [717.323701544459, 383.608235677083], [699.446344950113, 384.06483968099], [682.256583707878, 384.977905273438], [668.504707305786, 384.06483968099], [659.566059648751, 382.238566080729], [646.501809238909, 383.608235677083], [634.812749533289, 390.00010172526], [623.811346460059, 396.391967773438], [613.497446818524, 404.610026041667], [597.682876280513, 409.175638834635], [587.368976638978, 402.783772786458], [581.868275102363, 394.109090169271], [579.805519686167, 384.521362304688], [579.117924334055, 379.955769856771], [583.243435166447, 373.563903808594], [586.681411927005, 366.258972167969], [593.557334807982, 360.32362874349], [601.120822400932, 354.844970703125], [601.808387112905, 345.71376546224], [600.43322704882, 342.061238606771], [609.371935986132, 334.29970296224], [613.497446818524, 337.495625813802], [617.622988291055, 334.29970296224], [621.060934411474, 332.473490397135], [629.312047996674, 333.84315999349], [625.874101876255, 327.907897949219], [632.749994117093, 328.364440917969], [638.938352286098, 332.016906738281], [645.126618534686, 332.016906738281], [648.564595295244, 331.560363769531], [653.377762760024, 330.647237141927], [665.066761185366, 330.190694173177], [669.192333298036, 331.103759765625], [665.754356537478, 326.994771321615], [682.944117779713, 328.821024576823], [682.944117779713, 325.62510172526], [695.320772837444, 327.451293945312], [700.821535654336, 324.255432128906], [708.384992607147, 326.081624348958], [712.510534079678, 324.711975097656], [716.636106192348, 327.907897949219], [729.70035660219, 323.342305501302], [737.951408907113, 321.059509277344], [742.764545731755, 321.972574869792], [744.827301147951, 316.950439453125], [754.453574797236, 319.689758300781], [762.704719022575, 318.776692708333], [768.179008759648, 324.22910563151], [768.893015911302, 331.103759765625], [768.20542055919, 324.255432128906], [768.179008759648, 324.22910563151], [767.517825207078, 317.863566080729]
];
var latlngs2 = [
[750.328063964844, 392.282897949219], [756.516360853571, 387.260762532552], [762.704719022575, 385.434509277344], [770.955771327498, 380.868896484375], [778.519289560586, 382.238566080729], [781.269640328894, 377.672973632812], [783.332426385228, 368.998291015625], [784.019991097201, 358.953959147135], [781.269640328894, 350.735900878906], [775.081312800028, 341.148091634115], [770.955771327498, 331.103759765625], [767.517825207078, 317.863566080729], [771.643366679609, 309.645426432292], [769.580580623274, 305.536437988281], [759.95430697399, 300.514241536458], [762.704719022575, 297.77490234375], [777.144129496502, 300.514241536458], [782.644831033117, 297.77490234375], [789.520723273955, 294.578959147135], [803.272538395771, 295.035563151042], [809.460896564775, 296.861775716146], [814.274002749278, 294.122436523437], [821.837490342228, 296.405232747396], [828.025848511233, 292.752705891927], [834.901771392209, 296.405232747396], [843.840419049244, 300.057698567708], [848.653555873886, 302.797037760417], [856.904669459086, 302.797037760417], [865.843317116121, 307.36269124349], [875.469590765405, 308.732360839844], [876.844781469629, 314.211100260417], [883.720673710467, 315.124165852865], [889.909031879471, 317.406962076823], [891.971787295667, 325.62510172526], [896.784954760448, 329.277567545573], [903.660847001286, 331.103759765625], [901.59809158509, 333.84315999349], [899.535305528756, 338.865295410156], [896.097328768198, 344.800638834635], [890.596596591444, 350.735900878906], [886.471085759052, 360.32362874349], [885.78349040694, 369.454895019531], [885.095895054829, 381.781962076823], [883.720673710467, 388.173828125], [878.907536885825, 393.652567545573], [874.782026053433, 399.587829589844], [864.468126411898, 400.957560221354], [849.341120585859, 403.696899414062], [835.589305464044, 402.783772786458], [823.900307038702, 402.327229817708], [818.399544221809, 406.436299641927], [812.211247333082, 414.197774251302], [808.773301212663, 421.046162923177], [802.584943043659, 426.068359375], [791.583539970429, 430.633972167969], [790.208318626067, 425.155232747396], [786.770372505648, 420.133097330729], [780.582075616921, 415.110900878906], [772.330962031721, 413.284627278646], [762.017123670463, 410.08876546224], [757.203956205682, 406.436299641927], [751.703224028928, 402.783772786458], [744.827301147951, 399.131306966146], [741.389355027532, 395.478841145833], [750.328063964844, 392.282897949219]
];
var latlngs3 = [
[548.438167955023, 463.103576660156], [542.67564643339, 463.506306966146], [528.923800671436, 463.962829589844], [516.547145613705, 465.332560221354], [506.233276612309, 468.985026041667], [493.169026202466, 468.985026041667], [474.604074256008, 467.158772786458], [453.288802181382, 461.223490397135], [447.788039364489, 458.484171549479], [438.849391707455, 451.635762532552], [430.598247482116, 449.809509277344], [418.909249056774, 450.266092936198], [402.407021886374, 450.722635904948], [394.843534293424, 447.070170084635], [387.280016060335, 441.591430664062], [392.093183525116, 437.93896484375], [394.155969581451, 430.633972167969], [395.531129645535, 421.959309895833], [395.531129645535, 414.654357910156], [400.344266470178, 410.54530843099], [412.033295535658, 405.523173014323], [421.659599825082, 410.54530843099], [440.224551771539, 415.567504882812], [458.101908365885, 419.219970703125], [474.604074256008, 419.219970703125], [497.982224307386, 419.219970703125], [520.672687086236, 419.219970703125], [542.67564643339, 418.763427734375], [560.552972387597, 417.393697102865], [573.617161517162, 415.110900878906], [585.993816574893, 412.371561686198], [597.682876280513, 409.175638834635], [613.497446818524, 404.610026041667], [623.811346460059, 396.391967773438], [634.812749533289, 390.00010172526], [646.501809238909, 383.608235677083], [659.566059648751, 382.238566080729], [668.504707305786, 384.06483968099], [682.256583707878, 384.977905273438], [699.446344950113, 384.06483968099], [717.323701544459, 383.608235677083], [728.325196538106, 385.434509277344], [741.389355027532, 389.086975097656], [750.328063964844, 392.282897949219], [741.389355027532, 395.478841145833], [744.827301147951, 399.131306966146], [751.703224028928, 402.783772786458], [757.203956205682, 406.436299641927], [762.017123670463, 410.08876546224], [772.330962031721, 413.284627278646], [780.582075616921, 415.110900878906], [786.770372505648, 420.133097330729], [790.208318626067, 425.155232747396], [791.583539970429, 430.633972167969], [781.269640328894, 433.373291015625], [773.706122095805, 434.743041992188], [763.392314374686, 433.829895019531], [742.764545731755, 435.656107584635], [731.763112018386, 436.56923421224], [720.074052312767, 434.286437988281], [702.196695718421, 432.003641764323], [690.507636012801, 434.286437988281], [677.443416243098, 435.656107584635], [661.628815064947, 440.678304036458], [645.126618534686, 447.070170084635], [626.561697228367, 447.526692708333], [613.497446818524, 445.243896484375], [599.745631696709, 443.874226888021], [584.61862587067, 444.330769856771], [580.493084398139, 447.526692708333], [576.367573565747, 452.548828125], [567.428864628436, 458.027567545573], [555.739804922816, 462.59315999349], [548.438167955023, 463.103576660156]
];
var latlngs4 = [
[597.682876280513, 409.175638834635], [585.993816574893, 412.371561686198], [573.617161517162, 415.110900878906], [560.552972387597, 417.393697102865], [542.67564643339, 418.763427734375], [520.672687086236, 419.219970703125], [497.982224307386, 419.219970703125], [474.604074256008, 419.219970703125], [458.101908365885, 419.219970703125], [440.224551771539, 415.567504882812], [421.659599825082, 410.54530843099], [412.033295535658, 405.523173014323], [421.659599825082, 399.587829589844], [423.722385881416, 394.565694173177], [423.034790529305, 385.891031901042], [423.722385881416, 378.12949625651], [427.847896713808, 369.454895019531], [431.285842834228, 361.693359375], [434.723788954647, 356.671162923177], [439.536956419428, 358.953959147135], [443.662497891958, 354.844970703125], [450.538390132797, 353.931823730469], [452.60120682927, 358.497436523438], [459.47706842997, 357.127766927083], [462.915014550389, 354.388366699219], [465.665426598974, 348.909627278646], [472.541318839812, 346.17030843099], [477.354425024316, 347.996561686198], [486.293133961628, 347.539957682292], [490.418675434159, 342.974365234375], [497.294567674997, 341.148091634115], [508.296032028505, 337.952229817708], [518.609901029901, 338.865295410156], [522.735442502432, 335.66943359375], [527.548579327074, 332.473490397135], [536.487257624247, 336.582560221354], [543.363211145363, 335.212829589844], [549.551508034089, 332.473490397135], [557.114995627039, 336.1259765625], [565.36610921224, 337.952229817708], [561.928163091821, 331.103759765625], [571.554406100967, 331.560363769531], [577.055168917859, 333.386637369792], [583.931030518559, 337.495625813802], [590.119388687563, 337.039103190104], [594.932525512205, 335.212829589844], [600.43322704882, 342.061238606771], [601.808387112905, 345.71376546224], [601.120822400932, 354.844970703125], [593.557334807982, 360.32362874349], [586.681411927005, 366.258972167969], [583.243435166447, 373.563903808594], [579.117924334055, 379.955769856771], [579.805519686167, 384.521362304688], [581.868275102363, 394.109090169271], [587.368976638978, 402.783772786458], [597.682876280513, 409.175638834635]
];
var latlngs5 = [
[412.033295535658, 405.523173014323], [400.344266470178, 410.54530843099], [395.531129645535, 414.654357910156], [395.531129645535, 421.959309895833], [394.155969581451, 430.633972167969], [392.093183525116, 437.93896484375], [387.280016060335, 441.591430664062], [378.341368403301, 444.787292480469], [363.901957929374, 447.526692708333], [351.525302871643, 446.613566080729], [333.647946277297, 448.43983968099], [325.396832692096, 452.548828125], [312.332643562531, 453.91855875651], [310.95742221817, 443.874226888021], [303.39393462522, 437.025838216146], [297.893233088604, 432.003641764323], [289.642119503404, 428.807759602865], [282.766227262566, 425.155232747396], [273.139953613281, 423.328959147135], [260.76329855555, 418.763427734375], [268.326816788639, 411.458435058594], [274.515113677366, 402.327229817708], [278.640655149896, 392.739440917969], [277.265464445673, 383.151692708333], [282.766227262566, 375.846700032552], [290.329714855516, 368.085225423177], [290.329714855516, 360.32362874349], [289.642119503404, 356.214640299479], [295.142882320297, 350.279357910156], [294.455256328047, 346.626831054688], [292.392470271712, 342.061238606771], [298.580828440716, 332.473490397135], [302.018774561135, 324.711975097656], [308.207071449862, 315.580769856771], [313.707834266755, 313.297973632813], [319.20853580337, 317.863566080729], [322.646481923789, 321.972574869792], [330.897595508989, 322.429158528646], [337.773487749827, 325.62510172526], [345.337005982916, 327.907897949219], [350.837707519531, 324.711975097656], [359.088790464593, 325.168497721354], [366.652308697681, 327.451293945312], [377.653773051189, 328.821024576823], [383.154474587804, 331.560363769531], [392.780778877228, 331.560363769531], [397.593885061731, 335.66943359375], [398.281480413843, 338.865295410156], [405.157433934959, 342.517842610677], [412.033295535658, 340.235026041667], [415.471241656077, 344.800638834635], [423.034790529305, 344.800638834635], [425.785141297612, 349.366231282552], [431.973438186339, 351.64902750651], [434.723788954647, 356.671162923177], [431.285842834228, 361.693359375], [427.847896713808, 369.454895019531], [423.722385881416, 378.12949625651], [423.034790529305, 385.891031901042], [423.722385881416, 394.565694173177], [421.659599825082, 399.587829589844], [412.033295535658, 405.523173014323]
];
var latlngs6 = [
[893.878461845429, 597.374776204427], [884.408269062578, 603.21376546224], [883.033078358355, 607.779357910156], [877.53237682174, 610.062174479167], [868.593667884428, 615.08437093099], [863.092966347813, 618.280293782552], [866.530912468232, 624.215576171875], [858.967424875283, 627.411499023438], [854.154257410501, 629.694295247396], [856.217074106975, 634.259908040365], [852.779127986556, 636.999226888021], [846.590769817552, 641.56483968099], [847.965960521775, 647.500162760417], [848.653555873886, 654.805094401042], [839.714846936575, 654.805094401042], [832.838954695736, 651.609171549479], [829.401008575317, 658.001037597656], [813.586407397167, 656.174825032552], [805.335385732383, 652.97890218099], [804.647729099994, 658.91416422526], [793.646295386625, 661.196960449219], [780.582075616921, 653.891967773438], [780.582075616921, 648.413228352865], [786.770372505648, 644.760762532552], [780.582075616921, 642.021423339844], [775.081312800028, 642.021423339844], [766.142665142994, 647.04355875651], [764.079879086659, 642.021423339844], [752.39081938104, 642.021423339844], [744.827301147951, 641.56483968099], [748.265308548648, 637.455830891927], [749.640468612732, 631.520568847656], [744.827301147951, 628.781168619792], [741.389355027532, 625.585225423177], [744.827301147951, 620.106506347656], [744.139767076117, 615.997497558594], [740.70175967542, 612.345031738281], [743.452202364144, 609.149108886719], [746.202522492313, 604.58349609375], [746.202522492313, 600.474426269531], [748.265308548648, 594.53916422526], [752.39081938104, 588.147298177083], [757.203956205682, 584.951375325521], [761.329528318352, 582.66855875651], [765.455069790882, 578.559509277344], [773.018526743694, 576.276692708333], [782.644831033117, 574.907043457031], [786.082777153536, 578.102966308594], [791.583539970429, 583.125162760417], [801.209782979575, 590.430094401042], [810.148491916886, 594.99570719401], [820.462360918282, 598.648173014323], [825.963062454898, 599.104756673177], [830.088603927429, 595.452229817708], [832.151359343625, 590.430094401042], [836.964496168267, 583.125162760417], [842.465258985159, 578.102966308594], [849.341120585859, 573.993896484375], [858.279829523171, 573.080830891927], [869.968919868929, 570.798034667969], [871.344079933013, 574.907043457031], [873.406835349209, 579.929239908854], [879.595132237936, 584.951375325521], [884.408269062578, 589.060424804688], [889.221436527359, 592.712890625], [893.346947359752, 597.278503417969], [894.034542711863, 597.278503417969], [893.878461845429, 597.374776204427]
];
var latlngs7 = [
[869.968919868929, 570.798034667969], [858.279829523171, 573.080830891927], [849.341120585859, 573.993896484375], [842.465258985159, 578.102966308594], [836.964496168267, 583.125162760417], [832.151359343625, 590.430094401042], [830.088603927429, 595.452229817708], [825.963062454898, 599.104756673177], [820.462360918282, 598.648173014323], [810.148491916886, 594.99570719401], [801.209782979575, 590.430094401042], [791.583539970429, 583.125162760417], [786.082777153536, 578.102966308594], [782.644831033117, 574.907043457031], [787.45793721762, 570.341430664062], [788.145532569732, 566.232360839844], [788.833127921844, 559.840576171875], [792.958730674652, 557.10117594401], [799.834592275351, 552.992167154948], [795.021486090848, 546.600301106771], [794.333890738736, 539.751892089844], [788.145532569732, 529.707560221354], [786.082777153536, 523.772298177083], [777.831663568336, 516.010762532552], [775.081312800028, 510.988627115885], [775.523541921593, 505.703776041667], [775.768969432417, 502.7705078125], [776.45653414439, 490.443359375], [778.519289560586, 480.39902750651], [779.206884912698, 473.094095865885], [784.707586449313, 473.550638834635], [794.333890738736, 474.46376546224], [805.335385732383, 477.203104654948], [808.773301212663, 479.029357910156], [819.774734926032, 485.877766927083], [820.462360918282, 489.986836751302], [828.713413223205, 495.465494791667], [837.652152800656, 501.400838216146], [843.840419049244, 505.509826660156], [849.341120585859, 509.618896484375], [857.592264811198, 512.35829671224], [869.28126323654, 513.727966308594], [878.907536885825, 514.641092936198], [887.158681111164, 514.641092936198], [899.535336168894, 514.641092936198], [899.535336168894, 521.489501953125], [895.409733416086, 528.79443359375], [885.78349040694, 534.273173014323], [878.219941533713, 541.578165690104], [873.406835349209, 547.056823730469], [868.593667884428, 555.731506347656], [865.843317116121, 564.406168619792], [869.968919868929, 570.798034667969]
];
var latlngs8 = [
[893.878461845429, 597.374776204427], [894.034542711863, 597.278503417969], [893.346947359752, 597.278503417969], [889.221436527359, 592.712890625], [884.408269062578, 589.060424804688], [879.595132237936, 584.951375325521], [873.406835349209, 579.929239908854], [871.344079933013, 574.907043457031], [869.968919868929, 570.798034667969], [865.843317116121, 564.406168619792], [868.593667884428, 555.731506347656], [873.406835349209, 547.056823730469], [878.219941533713, 541.578165690104], [885.78349040694, 534.273173014323], [895.409733416086, 528.79443359375], [899.535336168894, 521.489501953125], [899.535336168894, 514.641092936198], [898.847679536506, 505.509826660156], [900.222900880867, 495.465494791667], [901.59809158509, 484.964640299479], [905.03603770551, 473.094095865885], [909.161548537902, 466.24570719401], [916.725036130852, 457.571024576823], [924.976149716052, 448.43983968099], [930.476851252667, 453.005432128906], [937.352804773783, 462.59315999349], [947.666673775179, 470.811299641927], [961.418488896994, 475.833435058594], [969.669571842056, 477.659708658854], [975.170273378671, 479.485961914062], [977.233090075144, 486.790893554688], [982.046196259648, 494.095825195312], [977.920685427256, 500.031168619792], [977.920685427256, 504.596761067708], [982.046196259648, 506.879557291667], [976.545494723033, 509.162373860677], [975.170273378671, 517.380432128906], [972.419922610363, 523.315694173177], [962.106084249106, 526.511637369792], [960.730862904744, 531.990376790365], [956.605321432213, 534.729695638021], [953.854970663906, 539.295369466146], [954.542566016017, 547.969970703125], [952.479779959683, 554.818359375], [946.979078423067, 556.64463297526], [942.165910958286, 562.123372395833], [944.22872765476, 564.406168619792], [955.23013072799, 568.515157063802], [942.853506310398, 570.798034667969], [938.040369485755, 578.559509277344], [929.789317180833, 580.385762532552], [921.538203595633, 583.125162760417], [915.349906706906, 583.581705729167], [907.786357833679, 590.430094401042], [907.786357833679, 595.908833821615], [900.910496232979, 598.648173014323], [893.878461845429, 597.374776204427]
];
var latlngs9 = [
[899.535336168894, 514.641092936198], [887.158681111164, 514.641092936198], [878.907536885825, 514.641092936198], [869.28126323654, 513.727966308594], [857.592264811198, 512.35829671224], [849.341120585859, 509.618896484375], [843.840419049244, 505.509826660156], [837.652152800656, 501.400838216146], [828.713413223205, 495.465494791667], [820.462360918282, 489.986836751302], [819.774734926032, 485.877766927083], [808.773301212663, 479.029357910156], [805.335385732383, 477.203104654948], [794.333890738736, 474.46376546224], [784.707586449313, 473.550638834635], [779.206884912698, 473.094095865885], [779.894480264809, 465.332560221354], [780.582075616921, 461.680094401042], [784.019991097201, 453.461975097656], [786.770372505648, 447.070170084635], [793.646295386625, 440.221761067708], [795.021486090848, 436.56923421224], [791.583539970429, 430.633972167969], [802.584943043659, 426.068359375], [808.773301212663, 421.046162923177], [812.211247333082, 414.197774251302], [818.399544221809, 406.436299641927], [823.900307038702, 402.327229817708], [849.341120585859, 403.696899414062], [864.468126411898, 400.957560221354], [874.782026053433, 399.587829589844], [872.719270637236, 406.892842610677], [877.53237682174, 411.001892089844], [880.282727590048, 416.48057047526], [885.78349040694, 422.872436523438], [891.284191943555, 427.438028971354], [895.409733416086, 432.460225423177], [903.660847001286, 437.482360839844], [911.911899306209, 442.047973632812], [924.976149716052, 448.43983968099], [916.725036130852, 457.571024576823], [909.161548537902, 466.24570719401], [905.03603770551, 473.094095865885], [901.59809158509, 484.964640299479], [900.222900880867, 495.465494791667], [898.847679536506, 505.509826660156], [899.535336168894, 514.641092936198]
];
var latlngs10 = [
[975.170273378671, 479.485961914062], [969.669571842056, 477.659708658854], [961.418519537133, 475.833435058594], [947.666673775179, 470.811299641927], [937.352804773783, 462.59315999349], [930.476851252667, 453.005432128906], [924.976149716052, 448.43983968099], [911.911899306209, 442.047973632812], [903.660847001286, 437.482360839844], [895.409733416086, 432.460225423177], [891.284191943555, 427.438028971354], [885.78349040694, 422.872436523438], [880.282727590048, 416.48057047526], [877.53237682174, 411.001892089844], [872.719270637236, 406.892842610677], [874.782026053433, 399.587829589844], [878.907536885825, 393.652567545573], [883.720673710467, 388.173828125], [885.095895054829, 381.781962076823], [885.78349040694, 369.454895019531], [886.471085759052, 360.32362874349], [890.596596591444, 350.735900878906], [896.097328768198, 344.800638834635], [899.535336168894, 338.865295410156], [901.59809158509, 333.84315999349], [913.974685362544, 336.1259765625], [919.475448179437, 342.061238606771], [924.976149716052, 342.517842610677], [934.602454005475, 338.865295410156], [942.853506310398, 342.061238606771], [948.35426912729, 342.517842610677], [952.479779959683, 347.996561686198], [957.292916784325, 350.735900878906], [971.04473190614, 355.301493326823], [975.857868730782, 359.410563151042], [979.983440843452, 371.281107584635], [986.85933308429, 375.846700032552], [991.672500549071, 380.412292480469], [992.360034620906, 382.695109049479], [993.735255965267, 390.456624348958], [997.173202085687, 395.022237141927], [991.672500549071, 402.327229817708], [988.922088500486, 409.175638834635], [997.173202085687, 413.284627278646], [986.85933308429, 416.02402750651], [986.85933308429, 421.959309895833], [988.922088500486, 433.829895019531], [984.796547027956, 443.874226888021], [993.047629973017, 445.700439453125], [993.735255965267, 450.722635904948], [991.672500549071, 459.853841145833], [996.485637373714, 466.24570719401], [993.735255965267, 472.180969238281], [984.108982315983, 469.898173014323], [977.233090075144, 469.898173014323], [975.170273378671, 479.485961914062]
];
var latlngs11 = [
[499.35738437147, 523.315694173177], [492.481430850355, 520.119832356771], [484.917973897543, 520.119832356771], [477.354425024316, 523.772298177083], [465.665426598974, 522.402628580729], [457.414313013774, 519.663228352865], [449.850794780685, 517.836975097656], [440.224551771539, 518.75010172526], [433.348659530701, 523.315694173177], [430.598247482116, 530.16416422526], [429.910652130004, 513.271362304688], [427.847896713808, 484.051493326823], [427.160301361697, 460.310424804688], [430.598247482116, 449.809509277344], [438.849391707455, 451.635762532552], [447.788039364489, 458.484171549479], [453.288802181382, 461.223490397135], [467.964264283697, 465.309895833333], [474.604074256008, 467.158772786458], [487.811352833208, 468.458028157552], [491.10627078627, 477.203104654948], [496.606972322885, 483.594970703125], [501.420139787666, 492.72617594401], [504.858085908086, 500.031168619792], [504.858085908086, 507.792704264323], [504.170490555974, 515.097635904948], [503.482925844001, 523.772298177083], [499.35738437147, 523.315694173177]
];
var latlngs12 = [
[430.598247482116, 530.16416422526], [416.158837008189, 531.077229817708], [404.469838582847, 531.990376790365], [401.03183118215, 526.055094401042], [394.155969581451, 518.75010172526], [384.529665292028, 520.119832356771], [377.653773051189, 523.772298177083], [372.153071514574, 527.881306966146], [373.52820093852, 534.729695638021], [368.027468761766, 540.6650390625], [363.214362577262, 545.230631510417], [356.338439696285, 542.491292317708], [349.462547455447, 543.860961914062], [343.27425056672, 546.600301106771], [337.085892397716, 546.143758138021], [329.522404804766, 544.317504882812], [319.896131155481, 545.687174479167], [318.520940451258, 539.295369466146], [318.520940451258, 530.16416422526], [321.271291219566, 523.315694173177], [325.396832692096, 516.467305501302], [326.084428044208, 510.075500488281], [326.084428044208, 504.140157063802], [324.021672628012, 495.008972167969], [321.958886571677, 488.160563151042], [319.896131155481, 479.029357910156], [322.646481923789, 473.550638834635], [319.896131155481, 467.158772786458], [314.395429618866, 460.766967773438], [312.33267420267, 453.91855875651], [325.396832692096, 452.548828125], [333.647946277297, 448.43983968099], [343.723343079349, 447.410563151042], [363.901957929374, 447.526692708333], [370.985437109767, 446.182840983073], [378.341368403301, 444.787292480469], [387.280016060335, 441.591430664062], [394.843534293424, 447.070170084635], [402.407021886374, 450.722635904948], [418.909249056774, 450.266092936198], [430.598247482116, 449.809509277344], [427.160301361697, 460.310424804688], [427.358083456874, 467.138692220052], [427.608689151136, 475.792561848958], [428.163459502071, 488.521708170573], [429.099148057072, 501.775634765625], [429.910652130004, 513.271362304688], [430.598247482116, 530.16416422526]
];
var latlngs13 = [
[431.285842834228, 629.23769124349], [401.719426534262, 629.23769124349], [380.404123819497, 628.781168619792], [378.341368403301, 615.540893554688], [377.653773051189, 607.322835286458], [379.716528467385, 600.930969238281], [382.466879235693, 593.169494628906], [379.028963755412, 586.777628580729], [376.278612987105, 579.929239908854], [372.153071514574, 573.993896484375], [368.715064113877, 562.579895019531], [366.652308697681, 555.274963378906], [363.214362577262, 545.230631510417], [368.027468761766, 540.6650390625], [373.52820093852, 534.729695638021], [372.153071514574, 527.881306966146], [384.529665292028, 520.119832356771], [394.155969581451, 518.75010172526], [401.03183118215, 526.055094401042], [416.158837008189, 531.077229817708], [430.598247482116, 530.16416422526], [430.209638603241, 552.097493489583], [430.118821232194, 578.093973795573], [430.681588659325, 602.756368001302], [431.285842834228, 629.23769124349]
];
var latlngs14 = [
[380.404123819497, 628.781168619792], [409.970540119462, 629.23769124349], [431.285842834228, 629.23769124349], [431.606614446065, 639.248372395833], [432.176919347311, 657.046162923177], [432.661033538451, 672.154439290365], [424.409950593389, 677.633158365885], [418.221623064524, 675.806905110677], [408.595380055378, 674.437235514323], [414.096081591993, 680.372497558594], [420.971973832831, 681.285624186198], [425.785141297612, 687.677429199219], [421.659599825082, 690.873372395833], [415.471241656077, 689.047159830729], [409.282975407489, 688.134033203125], [403.782243230735, 683.568440755208], [395.531129645535, 678.089701334635], [385.904855996251, 679.00282796224], [382.466879235693, 671.697835286458], [379.716528467385, 678.089701334635], [370.090254818101, 679.45937093099], [367.339904049793, 673.067504882812], [368.027468761766, 665.306030273438], [370.090254818101, 653.435424804688], [373.52820093852, 647.500162760417], [377.653773051189, 640.651774088542], [381.091719171608, 635.173034667969], [380.404123819497, 628.781168619792]
];
var latlngs15 = [
[370.090254818101, 679.45937093099], [361.151607161066, 675.806905110677], [354.27565363995, 680.829040527344], [341.211433870247, 684.024963378906], [333.647946277297, 681.285624186198], [328.834840092793, 675.806905110677], [318.520940451258, 673.067504882812], [317.145780387174, 663.479756673177], [317.145780387174, 642.021423339844], [317.833345099147, 636.999226888021], [324.021672628012, 633.346761067708], [326.084428044208, 631.06396484375], [326.77202339632, 622.389302571615], [325.396832692096, 615.540893554688], [321.271291219566, 607.779357910156], [317.833345099147, 599.561299641927], [317.145780387174, 591.343241373698], [316.458185035062, 579.929239908854], [316.458185035062, 566.232360839844], [316.458185035062, 557.557759602865], [319.896131155481, 545.687174479167], [329.522435444905, 544.317504882812], [337.085892397716, 546.143758138021], [343.27425056672, 546.600301106771], [349.462547455447, 543.860961914062], [356.338439696285, 542.491292317708], [363.214362577262, 545.230631510417], [366.652308697681, 555.274963378906], [368.715064113877, 562.579895019531], [372.153071514574, 573.993896484375], [376.278612987105, 579.929239908854], [382.466879235693, 593.169494628906], [379.716528467385, 600.930969238281], [378.341368403301, 615.540893554688], [379.278098723017, 621.553568522135], [380.404123819497, 628.781168619792], [381.091719171608, 635.173034667969], [373.52820093852, 647.500162760417], [369.030259220476, 659.535359700521], [367.339904049793, 673.067504882812], [370.090254818101, 679.45937093099]
];
var latlngs16 = [
[700.133940302225, 566.68896484375], [708.384992607147, 566.68896484375], [718.698892248682, 567.1455078125], [724.199593785298, 568.515157063802], [731.763112018386, 572.624226888021], [731.075547306413, 575.363627115885], [738.639004259224, 577.18983968099], [736.576248843028, 581.755432128906], [743.452202364144, 589.060424804688], [746.202522492313, 600.474426269531], [746.202522492313, 604.58349609375], [743.452202364144, 609.149108886719], [740.70175967542, 612.345031738281], [744.827301147951, 620.106506347656], [741.389355027532, 625.585225423177], [744.827301147951, 628.781168619792], [749.640468612732, 631.520568847656], [744.827301147951, 641.56483968099], [746.890117844425, 648.869832356771], [740.014164323309, 653.435424804688], [738.639004259224, 660.740376790365], [735.888653490917, 665.306030273438], [724.199593785298, 661.196960449219], [720.074052312767, 664.849426269531], [713.19812943179, 663.936299641927], [707.697397255036, 664.392903645833], [703.571886422644, 669.4150390625], [696.008398829694, 668.045369466146], [688.444880596605, 667.132242838542], [680.193767011405, 670.784708658854], [677.443416243098, 674.893758138021], [673.317874770567, 673.980631510417], [664.379165833255, 676.263427734375], [664.379165833255, 671.241292317708], [661.628815064947, 665.306030273438], [652.690167407913, 664.392903645833], [643.751458470601, 662.110107421875], [638.250756933986, 662.110107421875], [631.37480341287, 663.023234049479], [626.561697228367, 663.479756673177], [622.436155755836, 661.196960449219], [618.310583643166, 664.849426269531], [609.371935986132, 663.479756673177], [600.43322704882, 665.762573242188], [592.18211346362, 666.219095865885], [590.119388687563, 661.196960449219], [585.993816574893, 656.631368001302], [583.243435166447, 649.782958984375], [579.117924334055, 638.825500488281], [575.679978213636, 631.520568847656], [568.80402469252, 624.215576171875], [564.678513860128, 620.56309000651], [560.552972387597, 613.258097330729], [560.552972387597, 604.58349609375], [559.177751043235, 596.821960449219], [555.739804922816, 592.256368001302], [548.863912681978, 587.690694173177], [554.364614218593, 584.494832356771], [562.615758443932, 580.842366536458], [571.554406100967, 577.646423339844], [585.306221222782, 575.820170084635], [594.244930160093, 577.18983968099], [603.87117316924, 579.472635904948], [610.059500698105, 576.276692708333], [619.685804987528, 575.363627115885], [626.561697228367, 576.73329671224], [636.187940237513, 575.363627115885], [640.313512350182, 573.080830891927], [647.876999943132, 566.68896484375], [655.440518176221, 565.319295247396], [663.691570481143, 567.602091471354], [673.317874770567, 570.341430664062], [680.193767011405, 572.167704264323], [689.82004066069, 572.624226888021], [700.133940302225, 571.711100260417], [700.133940302225, 566.68896484375]
];
var latlngs17 = [
[430.598247482116, 530.16416422526], [440.224551771539, 518.75010172526], [449.850794780685, 517.836975097656], [457.414313013774, 519.663228352865], [465.665457239113, 522.402628580729], [484.917973897543, 520.119832356771], [499.35738437147, 523.315694173177], [512.421573501035, 527.424763997396], [511.17917715785, 537.780843098958], [510.358879365117, 544.317504882812], [520.672687086236, 559.840576171875], [527.548579327074, 565.775838216146], [531.674151439743, 573.537373860677], [544.050745217197, 582.66855875651], [548.863912681978, 587.690694173177], [559.177751043235, 596.821960449219], [560.552972387597, 604.58349609375], [560.552972387597, 613.258097330729], [568.80402469252, 624.215576171875], [575.679978213636, 631.520568847656], [579.117924334055, 638.825500488281], [583.243435166447, 649.782958984375], [590.119388687563, 661.196960449219], [592.18211346362, 666.219095865885], [585.993816574893, 675.806905110677], [577.742733629832, 682.198771158854], [571.554406100967, 687.677429199219], [566.053673924212, 689.503702799479], [553.677018866482, 689.503702799479], [547.488752617893, 693.156168619792], [539.237608392555, 690.416829427083], [528.923800671436, 689.503702799479], [525.485793270739, 685.851236979167], [524.110633206655, 678.546223958333], [518.609901029901, 679.45937093099], [510.358848724978, 675.806905110677], [499.35738437147, 671.241292317708], [494.544216906689, 668.045369466146], [489.731080082047, 669.4150390625], [486.293133961628, 677.176574707031], [482.85515720107, 675.806905110677], [477.354425024316, 680.372497558594], [470.478563423616, 679.45937093099], [459.47706842997, 677.633158365885], [456.726717661662, 681.285624186198], [447.100444012378, 676.263427734375], [442.974902539847, 680.829040527344], [435.411384306758, 677.633158365885], [432.661033538451, 672.154439290365], [431.285842834228, 629.23769124349], [429.910652130004, 568.971761067708], [430.598247482116, 530.16416422526]
];
var latlngs18 = [
[548.863912681978, 587.690694173177], [544.050745217197, 582.66855875651], [537.174852976359, 578.102966308594], [531.674151439743, 573.537373860677], [527.548579327074, 565.775838216146], [520.672687086236, 559.840576171875], [513.796794845397, 552.535563151042], [510.358848724978, 544.317504882812], [511.733978148924, 533.360026041667], [512.421573501035, 527.424763997396], [503.482925844001, 523.772298177083], [499.35738437147, 523.315694173177], [504.170490555974, 515.097635904948], [504.858085908086, 507.792704264323], [504.858085908086, 500.031168619792], [501.420139787666, 492.72617594401], [496.606972322885, 483.594970703125], [491.10627078627, 477.203104654948], [487.811352833208, 468.458028157552], [493.169026202466, 468.985026041667], [506.233276612309, 468.985026041667], [516.547145613705, 465.332560221354], [528.923800671436, 463.962829589844], [542.67564643339, 463.506306966146], [548.438198595162, 463.103576660156], [553.677018866482, 468.985026041667], [563.990918508017, 471.724426269531], [577.055168917859, 472.180969238281], [586.681411927005, 476.2900390625], [592.18211346362, 477.659708658854], [601.120822400932, 482.681823730469], [599.058036344597, 488.617167154948], [605.246394513601, 495.008972167969], [605.933989865713, 498.661437988281], [613.497446818524, 503.683634440104], [615.56020223472, 509.162373860677], [625.874101876255, 513.271362304688], [629.999643348786, 515.554158528646], [632.062398764982, 518.75010172526], [631.37480341287, 521.489501953125], [638.938352286098, 525.598490397135], [633.437589469205, 528.79443359375], [630.687208060759, 532.446960449219], [633.437589469205, 537.012491861979], [640.313512350182, 541.578165690104], [649.252160007216, 542.491292317708], [657.503273592417, 549.339640299479], [664.379165833255, 550.252766927083], [672.630279418455, 547.969970703125], [676.068225538874, 551.165893554688], [688.444880596605, 556.188028971354], [698.071123605751, 563.036499023438], [700.133940302225, 566.68896484375], [700.133940302225, 571.711100260417], [689.82004066069, 572.624226888021], [673.317874770567, 570.341430664062], [663.691570481143, 567.602091471354], [655.440518176221, 565.319295247396], [647.876999943132, 566.68896484375], [640.313512350182, 573.080830891927], [636.187940237513, 575.363627115885], [626.561697228367, 576.73329671224], [619.685804987528, 575.363627115885], [610.059500698105, 576.276692708333], [603.87117316924, 579.472635904948], [585.306221222782, 575.820170084635], [571.554406100967, 577.646423339844], [562.615758443932, 580.842366536458], [548.863912681978, 587.690694173177]
];
var latlngs19 = [
[613.497446818524, 503.683634440104], [663.691570481143, 503.683634440104], [706.338844146116, 504.248168945313], [742.03595387409, 504.999226888021], [757.900008236069, 505.333028157552], [775.523541921593, 505.703776041667], [777.831663568336, 516.010762532552], [786.082777153536, 523.772298177083], [788.145532569732, 529.707560221354], [794.333890738736, 539.751892089844], [795.021486090848, 546.600301106771], [792.958730674652, 557.10117594401], [788.833127921844, 559.840576171875], [788.145532569732, 566.232360839844], [782.644831033117, 574.907043457031], [773.018526743694, 576.276692708333], [765.455069790882, 578.559509277344], [757.203956205682, 584.951375325521], [752.39081938104, 588.147298177083], [746.202522492313, 600.474426269531], [743.452171724005, 589.060424804688], [739.326599611336, 585.407958984375], [736.576248843028, 581.755432128906], [738.639004259224, 577.18983968099], [731.075516666274, 575.363627115885], [731.763112018386, 572.624226888021], [724.199593785298, 568.515157063802], [718.698892248682, 567.1455078125], [708.384992607147, 566.68896484375], [700.133940302225, 566.68896484375], [698.071123605751, 563.036499023438], [688.444880596605, 561.210225423177], [688.444880596605, 556.188028971354], [682.256583707878, 552.079040527344], [676.068225538874, 551.165893554688], [672.630279418455, 547.969970703125], [664.379165833255, 550.252766927083], [657.503273592417, 549.339640299479], [652.690167407913, 547.513427734375], [649.252160007216, 542.491292317708], [645.126618534686, 544.77402750651], [640.313512350182, 541.578165690104], [633.437589469205, 537.012491861979], [630.687208060759, 532.446960449219], [633.437589469205, 528.79443359375], [638.938352286098, 525.598490397135], [631.37480341287, 521.489501953125], [632.062398764982, 518.75010172526], [629.999643348786, 515.554158528646], [625.874101876255, 513.271362304688], [618.998178995278, 513.727966308594], [615.56020223472, 509.162373860677], [613.497446818524, 503.683634440104]
];
var latlngs20 = [
[775.523541921593, 505.703776041667], [679.506171659294, 503.683634440104], [613.497446818524, 503.683634440104], [605.933989865713, 498.661437988281], [605.246394513601, 495.008972167969], [607.309149929797, 492.26963297526], [599.058036344597, 488.617167154948], [601.120822400932, 482.681823730469], [592.18211346362, 477.659708658854], [586.681411927005, 476.2900390625], [577.055168917859, 472.180969238281], [571.554406100967, 474.007161458333], [563.990918508017, 471.724426269531], [556.427400274928, 472.180969238281], [553.677018866482, 468.985026041667], [548.438198595162, 463.103576660156], [555.739804922816, 462.59315999349], [567.428864628436, 458.027567545573], [576.367573565747, 452.548828125], [580.493084398139, 447.526692708333], [584.61862587067, 444.330769856771], [599.745631696709, 443.874226888021], [613.497446818524, 445.243896484375], [626.561697228367, 447.526692708333], [645.126618534686, 447.070170084635], [661.628815064947, 440.678304036458], [677.443416243098, 435.656107584635], [690.507636012801, 434.286437988281], [702.196695718421, 432.003641764323], [720.074052312767, 434.286437988281], [731.763112018386, 436.56923421224], [752.042563564806, 434.834696451823], [763.392314374686, 433.829895019531], [781.269640328894, 433.373291015625], [791.583539970429, 430.633972167969], [793.646295386625, 440.221761067708], [786.770372505648, 447.070170084635], [784.019991097201, 453.461975097656], [780.582075616921, 461.680094401042], [779.206884912698, 473.094095865885], [778.519289560586, 480.39902750651], [776.129726425232, 496.302958170573], [775.523541921593, 505.703776041667]
];
var latlngs21 = [
[325.396832692096, 615.540893554688], [326.77202339632, 622.389302571615], [324.021672628012, 633.346761067708], [317.833345099147, 636.999226888021], [317.145780387174, 642.021423339844], [317.145780387174, 651.609171549479], [317.145780387174, 663.479756673177], [318.520940451258, 673.067504882812], [309.582292794224, 673.067504882812], [297.205637736493, 673.524108886719], [291.7048749196, 670.784708658854], [282.078601270316, 676.263427734375], [278.640655149896, 670.784708658854], [275.890304381589, 662.110107421875], [273.827518325254, 658.001037597656], [266.951656724554, 658.91416422526], [258.012947787243, 659.37070719401], [251.137055546404, 655.718241373698], [244.261102025289, 656.174825032552], [233.259698952058, 657.087890625], [225.69618071897, 652.97890218099], [214.694716365462, 649.326375325521], [200.942870603508, 648.869832356771], [192.691818298585, 647.04355875651], [181.690323304938, 644.304239908854], [178.252407824658, 637.455830891927], [176.877217120435, 631.520568847656], [179.627567888742, 624.215576171875], [176.877217120435, 614.62782796224], [188.566276826054, 611.888427734375], [191.316627594362, 605.496561686198], [198.880115187312, 603.670369466146], [209.193984188708, 610.975301106771], [214.00712101335, 616.454040527344], [227.758936135166, 619.193359375], [259.388107851327, 619.193359375], [286.204173382985, 619.649963378906], [317.145780387174, 618.736836751302], [325.396832692096, 615.540893554688]
];
var latlngs22 = [
[318.520940451258, 530.16416422526], [319.896131155481, 545.687174479167], [316.458185035062, 557.557759602865], [316.545080468358, 571.274759928385], [316.788792131416, 585.417439778646], [317.833345099147, 599.561299641927], [321.271291219566, 607.779357910156], [325.396832692096, 615.540893554688], [304.107267693822, 619.121643066406], [286.204173382985, 619.649963378906], [271.10471304162, 619.392903645833], [248.386643497819, 619.193359375], [227.758936135166, 619.193359375], [214.00712101335, 616.454040527344], [209.193984188708, 610.975301106771], [188.566276826054, 611.888427734375], [198.880115187312, 603.670369466146], [205.068473356316, 598.648173014323], [206.4436334204, 593.169494628906], [210.569174892931, 584.038228352865], [214.00712101335, 579.472635904948], [226.383745430943, 576.73329671224], [233.259698952058, 570.341430664062], [242.198346609093, 567.1455078125], [244.9486973774, 562.123372395833], [248.386643497819, 556.64463297526], [258.728119264166, 546.012634277344], [269.351361745811, 539.410237630208], [283.41662548632, 532.768900553385], [293.767660975935, 527.881306966146], [302.018774561135, 527.424763997396], [309.582323434362, 527.424763997396], [318.520940451258, 530.16416422526]
];
var latlngs23 = [
[260.76329855555, 418.763427734375], [273.139953613281, 423.328959147135], [289.642119503404, 428.807759602865], [303.39393462522, 437.025838216146], [310.95742221817, 443.874226888021], [312.33267420267, 453.91855875651], [317.272753121862, 464.110371907552], [322.646481923789, 473.550638834635], [321.373843763727, 485.570760091146], [324.021672628012, 495.008972167969], [326.084428044208, 504.140157063802], [326.084428044208, 510.075500488281], [325.396832692096, 516.467305501302], [318.520940451258, 530.16416422526], [309.582323434362, 527.424763997396], [302.018774561135, 527.424763997396], [293.767660975935, 527.881306966146], [283.41662548632, 532.768900553385], [262.826053971746, 542.491292317708], [257.325352435131, 534.729695638021], [253.887406314712, 526.511637369792], [242.885941961204, 519.206705729167], [232.572103599947, 510.988627115885], [236.010049720366, 504.140157063802], [233.259698952058, 495.465494791667], [232.572103599947, 489.530232747396], [229.134126839389, 485.877766927083], [227.071340783054, 477.659708658854], [224.320990014746, 474.007161458333], [223.633394662635, 468.071899414062], [224.320990014746, 462.136637369792], [224.320990014746, 455.744771321615], [228.446531487277, 453.005432128906], [227.071340783054, 449.352966308594], [229.821691551362, 445.243896484375], [227.758936135166, 439.765157063802], [222.945829950662, 435.199564615885], [220.195417902077, 430.633972167969], [218.820288478131, 429.264302571615], [215.382281077435, 424.698710123698], [214.00712101335, 419.219970703125], [208.506419476735, 416.937174479167], [207.818824124623, 414.197774251302], [201.630465955619, 408.719095865885], [207.131228772512, 400.957560221354], [236.010049720366, 411.914957682292], [260.76329855555, 418.763427734375]
];
var latlngs24 = [
[274.515113677366, 402.327229817708], [268.326816788639, 411.458435058594], [260.76329855555, 418.763427734375], [236.010049720366, 411.914957682292], [224.532590812469, 407.560099283854], [207.131228772512, 400.957560221354], [185.027402088824, 393.789774576823], [152.123937645112, 380.868896484375], [119.217317267115, 368.793904622396], [99.8670279261578, 361.693359375], [99.8670279261578, 354.388366699219], [104.6801647508, 350.279357910156], [108.80573686347, 344.344034830729], [117.056789168392, 339.778442382812], [129.433444226123, 345.257161458333], [125.307872113454, 339.778442382812], [131.496230282458, 337.039103190104], [129.433444226123, 333.386637369792], [136.309336466962, 328.821024576823], [149.373556236665, 330.647237141927], [146.623205468358, 327.907897949219], [148.685991524693, 323.342305501302], [158.312234533838, 325.168497721354], [162.437806646508, 321.059509277344], [165.875752766927, 315.124165852865], [165.875752766927, 308.275756835938], [174.814461704239, 301.883972167969], [189.253872178166, 296.861775716146], [198.1925198352, 292.752705891927], [211.256739604904, 297.77490234375], [216.069876429546, 291.383036295573], [220.195417902077, 285.904357910156], [229.134126839389, 286.817423502604], [241.510751256981, 291.383036295573], [258.012947787243, 295.492106119792], [260.075703203439, 300.970825195312], [271.077167556947, 299.144571940104], [283.453822614677, 299.144571940104], [288.954524151293, 304.623291015625], [298.580828440716, 313.75449625651], [308.207071449862, 315.580769856771]
];
var latlngs25 = [
[207.131228772512, 400.957560221354], [207.818824124623, 414.197774251302], [215.382281077435, 424.698710123698], [218.820288478131, 429.264302571615], [227.758936135166, 439.765157063802], [229.821691551362, 445.243896484375], [228.446531487277, 453.005432128906], [224.320990014746, 462.136637369792], [223.633394662635, 468.071899414062], [227.071340783054, 477.659708658854], [229.134126839389, 485.877766927083], [233.259698952058, 495.465494791667], [236.010049720366, 504.140157063802], [232.572134240085, 510.988627115885], [242.885941961204, 519.206705729167], [254.557291666667, 528.11289469401], [257.325352435131, 534.729695638021], [262.826053971746, 542.491292317708], [258.728119264166, 546.012634277344], [251.137055546404, 552.535563151042], [244.9486973774, 562.123372395833], [242.198346609093, 567.1455078125], [233.259698952058, 570.341430664062], [226.383745430943, 576.73329671224], [214.00712101335, 579.472635904948], [210.569174892931, 584.038228352865], [205.068473356316, 598.648173014323], [198.880115187312, 603.670369466146], [191.316627594362, 605.496561686198], [184.969676067551, 612.731363932292], [176.877217120435, 614.62782796224], [179.627567888742, 624.215576171875], [176.877217120435, 631.520568847656], [181.690323304938, 644.304239908854], [162.437806646508, 634.716491699219], [156.937105109893, 626.954895019531], [144.560450052162, 621.01963297526], [142.497694635966, 610.975301106771], [137.684527171185, 603.670369466146], [132.183794994431, 600.930969238281], [119.119575224727, 600.017842610677], [117.056789168392, 591.799763997396], [111.556087631777, 586.777628580729], [111.556087631777, 579.929239908854], [110.868461639527, 576.276692708333], [119.8071399367, 572.624226888021], [112.931278336, 565.319295247396], [103.304974046577, 556.188028971354], [95.7414558134884, 552.992167154948], [87.4903728684269, 550.70937093099], [83.3648620360348, 543.404357910156], [91.6159143409576, 538.83876546224], [84.0524573881464, 537.012491861979], [77.8640992191422, 535.642842610677], [69.6130469142194, 530.16416422526], [64.7999100895771, 526.968241373698], [64.1123147374655, 521.489501953125], [71.6758023304154, 515.097635904948], [64.1123147374655, 509.162373860677], [66.1751007938002, 505.053304036458], [62.0495593212694, 499.574564615885], [65.4875054416885, 492.72617594401], [67.5502608578846, 487.247436523438], [75.8013438029461, 486.334309895833], [77.1765038670306, 479.029357910156], [86.1152128043424, 480.39902750651], [86.1152128043424, 472.637491861979], [79.9269159156156, 469.898173014323], [84.0524573881464, 462.59315999349], [81.9896713318117, 453.91855875651], [75.1137484508346, 455.288228352865], [70.9882069783039, 459.853841145833], [64.7999100895771, 459.397298177083], [57.2363918564885, 455.744771321615], [55.1736058001537, 449.352966308594], [52.4232550318461, 443.874226888021], [53.7984457360693, 435.656107584635], [48.2976829191767, 432.003641764323], [50.3604996156502, 424.242106119792], [47.6101488473425, 418.306823730469], [51.0480949677616, 411.001892089844], [51.0480949677616, 405.066569010417], [59.2991472726845, 405.066569010417], [58.6115519205729, 399.587829589844], [51.0480949677616, 399.131306966146], [50.3604996156502, 395.022237141927], [48.2976829191767, 387.260762532552], [42.7969813825615, 383.608235677083], [49.6729042635385, 383.151692708333], [47.6101488473425, 378.12949625651], [51.7356903198732, 377.672973632812], [57.9239565684613, 374.0205078125], [65.4875054416885, 373.563903808594], [68.2378562099963, 378.586100260417], [80.6145112677272, 380.868896484375], [89.5531589247615, 374.933634440104], [91.6159143409576, 372.19423421224], [91.6159143409576, 366.715494791667], [95.7414558134884, 364.889302571615], [99.8670279261578, 361.693359375], [152.123937645112, 380.868896484375], [177.564812472546, 391.369771321615], [207.131228772512, 400.957560221354]
];
var i = 0;
<?php echo 'var polygonarray = ' . json_encode($polygon) . ';'; ?>
<?php echo 'var latlngsarray = ' . json_encode($latlngs) . ';'; ?>
<?php echo 'var colorsarray = ' . json_encode($currownercolor) . ';'; ?>
<?php echo 'var regionnamesarray = ' . json_encode($regionnames) . ';'; ?>
<?php echo 'var religionnamesarray = ' . json_encode($religionnames) . ';'; ?>
<?php echo 'var climatenamesarray = ' . json_encode($climatenames) . ';'; ?>
<?php echo 'var religionpolygon = ' . json_encode($polygonreligion) . ';'; ?>
<?php echo 'var religioncolorsarray = ' . json_encode($religioncolor) . ';'; ?>
<?php echo 'var climatepolygon = ' . json_encode($polygonclimate) . ';'; ?>
<?php echo 'var climatecolorsarray = ' . json_encode($climatecolor) . ';'; ?>
<?php echo 'var temperaturepolygon = ' . json_encode($polygontemperature) . ';'; ?>
<?php echo 'var temperaturenamesarray = ' . json_encode($temperaturenames) . ';'; ?>
<?php echo 'var temperaturecolorsarray = ' . json_encode($temperaturecolor) . ';'; ?>
<?php echo 'var epidemicpolygon = ' . json_encode($polygonepidemic) . ';'; ?>
<?php echo 'var epidemicnamesarray = ' . json_encode($epidemicnames) . ';'; ?>
<?php echo 'var epidemiccolorsarray = ' . json_encode($epidemiccolor) . ';'; ?>
<?php echo 'var resourcepolygon = ' . json_encode($polygonresource) . ';'; ?>
<?php echo 'var resourcenamesarray = ' . json_encode($resourcenames) . ';'; ?>
<?php echo 'var resourcecolorsarray = ' . json_encode($resourceccolor) . ';'; ?>
//var polygonarray = polygonarray.toString();
while(i<=24){
var color = colorsarray[i];
window[polygonarray[i]] = L.polygon(window[latlngsarray[i]], {color: color}).bindPopup(regionnamesarray[i]);//.addTo(map);
var relcolor = religioncolorsarray[i];
window[religionpolygon[i]] = L.polygon(window[latlngsarray[i]], {color: relcolor}).bindPopup(religionnamesarray[i]);//.addTo(map);
var climcolor = climatecolorsarray[i];
window[climatepolygon[i]] = L.polygon(window[latlngsarray[i]], {color: climcolor}).bindPopup(climatenamesarray[i]);//.addTo(map);
var tempcolor = temperaturecolorsarray[i];
window[temperaturepolygon[i]] = L.polygon(window[latlngsarray[i]], {color: tempcolor}).bindPopup(temperaturenamesarray[i]);//.addTo(map);
var epicolor = epidemiccolorsarray[i];
window[epidemicpolygon[i]] = L.polygon(window[latlngsarray[i]], {color: epicolor}).bindPopup(epidemicnamesarray[i]);//.addTo(map);
var rescolor = resourcecolorsarray[i];
window[resourcepolygon[i]] = L.polygon(window[latlngsarray[i]], {color: rescolor}).bindPopup(resourcenamesarray[i]);//.addTo(map);
//document.write(temperaturepolygon[i]);
//document.write(tempcolor);
i++;
}
var popup1 = L.popup()
.setLatLng([667.0, 502.0])
.setContent("I am a standalone popup.");
//.openOn(map);
var popup = L.popup();
function onMapClick(e) {
popup
.setLatLng(e.latlng)
.setContent("" + e.latlng.toString())
.openOn(map);
}
map.on('click', onMapClick);
var bounds = [[0,0], [1000,1000]];
var image = L.imageOverlay('map/mapfinal2.jpg', bounds).addTo(map);
map.options.minZoom = 0;
map.options.maxZoom = 4;
map.fitBounds(bounds);
//add layers
var geographic = L.layerGroup([image]);
var political = L.layerGroup([polygon1, polygon2, polygon3, polygon4, polygon5, polygon6, polygon7, polygon8, polygon9, polygon10, polygon11, polygon12, polygon13, polygon14, polygon15, polygon16, polygon17, polygon18, polygon19, polygon20, polygon21, polygon22, polygon23, polygon24, polygon25]);
var religion = L.layerGroup([polygonreligion1, polygonreligion2, polygonreligion3, polygonreligion4, polygonreligion5, polygonreligion6, polygonreligion7, polygonreligion8, polygonreligion9, polygonreligion10, polygonreligion11, polygonreligion12, polygonreligion13, polygonreligion14, polygonreligion15, polygonreligion16, polygonreligion17, polygonreligion18, polygonreligion19, polygonreligion20, polygonreligion21, polygonreligion22, polygonreligion23, polygonreligion24, polygonreligion25]);
var climate = L.layerGroup([polygonclimate1, polygonclimate2, polygonclimate3, polygonclimate4, polygonclimate5, polygonclimate6, polygonclimate7, polygonclimate8, polygonclimate9, polygonclimate10, polygonclimate11, polygonclimate12, polygonclimate13, polygonclimate14, polygonclimate15, polygonclimate16, polygonclimate17, polygonclimate18, polygonclimate19, polygonclimate20, polygonclimate21, polygonclimate22, polygonclimate23, polygonclimate24, polygonclimate25]);
var temperature = L.layerGroup([polygontemperature1, polygontemperature2, polygontemperature3, polygontemperature4, polygontemperature5, polygontemperature6, polygontemperature7, polygontemperature8, polygontemperature9, polygontemperature10, polygontemperature11, polygontemperature12, polygontemperature13, polygontemperature14, polygontemperature15, polygontemperature16, polygontemperature17, polygontemperature18, polygontemperature19, polygontemperature20, polygontemperature21, polygontemperature22, polygontemperature23, polygontemperature24, polygontemperature25]);
var epidemic = L.layerGroup([polygonepidemic1, polygonepidemic2, polygonepidemic3, polygonepidemic4, polygonepidemic5, polygonepidemic6, polygonepidemic7, polygonepidemic8, polygonepidemic9, polygonepidemic10, polygonepidemic11, polygonepidemic12, polygonepidemic13, polygonepidemic14, polygonepidemic15, polygonepidemic16, polygonepidemic17, polygonepidemic18, polygonepidemic19, polygonepidemic20, polygonepidemic21, polygonepidemic22, polygonepidemic23, polygonepidemic24, polygonepidemic25]);
var resources = L.layerGroup([polygonresource1, polygonresource2, polygonresource3, polygonresource4, polygonresource5, polygonresource6, polygonresource7, polygonresource8, polygonresource9, polygonresource10, polygonresource11, polygonresource12, polygonresource13, polygonresource14, polygonresource15, polygonresource16, polygonresource17, polygonresource18, polygonresource19, polygonresource20, polygonresource21, polygonresource22, polygonresource23, polygonresource24, polygonresource25]);
var baseMaps = {
"geographic": map,
"political": political,
"religion": religion,
"epidemic": epidemic,
"climate": climate,
"temperature": temperature,
"resources": resources
};
var overlayMaps = {
};
L.control.layers(baseMaps, overlayMaps).addTo(map);
</script>
</div>
<?php
?>
</div>
</body>
<footer>
<?php require 'bottombar.php'; ?>
</footer>
</html>