Subversion Repositories php-qbpwcf

Rev

Rev 23 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 liveuser 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
<html>
3
 
4
    <head>
5
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6
        <title>amMap example</title>
7
 
8
        <link rel="stylesheet" href="../ammap/ammap.css" type="text/css">
9
        <script src="../ammap/ammap.js" type="text/javascript"></script>
10
        <!-- map file should be included after ammap.js -->
11
		<script src="../ammap/maps/js/worldLow.js" type="text/javascript"></script>
12
		<script src="../ammap/themes/black.js" type="text/javascript"></script>
13
        <script>
14
			/*
15
			        		although ammap has methos like getAreaCenterLatitude and getAreaCenterLongitude,
16
			        		they are not suitable in quite a lot of cases as the center of some countries
17
			        		is even outside the country itself (like US, because of Alaska and Hawaii)
18
			        		That's why wehave the coordinates stored here
19
			        	*/
20
 
21
			var latlong = {};
22
			latlong["AD"] = {
23
				"latitude": 42.5,
24
				"longitude": 1.5
25
			};
26
			latlong["AE"] = {
27
				"latitude": 24,
28
				"longitude": 54
29
			};
30
			latlong["AF"] = {
31
				"latitude": 33,
32
				"longitude": 65
33
			};
34
			latlong["AG"] = {
35
				"latitude": 17.05,
36
				"longitude": -61.8
37
			};
38
			latlong["AI"] = {
39
				"latitude": 18.25,
40
				"longitude": -63.1667
41
			};
42
			latlong["AL"] = {
43
				"latitude": 41,
44
				"longitude": 20
45
			};
46
			latlong["AM"] = {
47
				"latitude": 40,
48
				"longitude": 45
49
			};
50
			latlong["AN"] = {
51
				"latitude": 12.25,
52
				"longitude": -68.75
53
			};
54
			latlong["AO"] = {
55
				"latitude": -12.5,
56
				"longitude": 18.5
57
			};
58
			latlong["AP"] = {
59
				"latitude": 35,
60
				"longitude": 105
61
			};
62
			latlong["AQ"] = {
63
				"latitude": -90,
64
				"longitude": 0
65
			};
66
			latlong["AR"] = {
67
				"latitude": -34,
68
				"longitude": -64
69
			};
70
			latlong["AS"] = {
71
				"latitude": -14.3333,
72
				"longitude": -170
73
			};
74
			latlong["AT"] = {
75
				"latitude": 47.3333,
76
				"longitude": 13.3333
77
			};
78
			latlong["AU"] = {
79
				"latitude": -27,
80
				"longitude": 133
81
			};
82
			latlong["AW"] = {
83
				"latitude": 12.5,
84
				"longitude": -69.9667
85
			};
86
			latlong["AZ"] = {
87
				"latitude": 40.5,
88
				"longitude": 47.5
89
			};
90
			latlong["BA"] = {
91
				"latitude": 44,
92
				"longitude": 18
93
			};
94
			latlong["BB"] = {
95
				"latitude": 13.1667,
96
				"longitude": -59.5333
97
			};
98
			latlong["BD"] = {
99
				"latitude": 24,
100
				"longitude": 90
101
			};
102
			latlong["BE"] = {
103
				"latitude": 50.8333,
104
				"longitude": 4
105
			};
106
			latlong["BF"] = {
107
				"latitude": 13,
108
				"longitude": -2
109
			};
110
			latlong["BG"] = {
111
				"latitude": 43,
112
				"longitude": 25
113
			};
114
			latlong["BH"] = {
115
				"latitude": 26,
116
				"longitude": 50.55
117
			};
118
			latlong["BI"] = {
119
				"latitude": -3.5,
120
				"longitude": 30
121
			};
122
			latlong["BJ"] = {
123
				"latitude": 9.5,
124
				"longitude": 2.25
125
			};
126
			latlong["BM"] = {
127
				"latitude": 32.3333,
128
				"longitude": -64.75
129
			};
130
			latlong["BN"] = {
131
				"latitude": 4.5,
132
				"longitude": 114.6667
133
			};
134
			latlong["BO"] = {
135
				"latitude": -17,
136
				"longitude": -65
137
			};
138
			latlong["BR"] = {
139
				"latitude": -10,
140
				"longitude": -55
141
			};
142
			latlong["BS"] = {
143
				"latitude": 24.25,
144
				"longitude": -76
145
			};
146
			latlong["BT"] = {
147
				"latitude": 27.5,
148
				"longitude": 90.5
149
			};
150
			latlong["BV"] = {
151
				"latitude": -54.4333,
152
				"longitude": 3.4
153
			};
154
			latlong["BW"] = {
155
				"latitude": -22,
156
				"longitude": 24
157
			};
158
			latlong["BY"] = {
159
				"latitude": 53,
160
				"longitude": 28
161
			};
162
			latlong["BZ"] = {
163
				"latitude": 17.25,
164
				"longitude": -88.75
165
			};
166
			latlong["CA"] = {
167
				"latitude": 54,
168
				"longitude": -100
169
			};
170
			latlong["CC"] = {
171
				"latitude": -12.5,
172
				"longitude": 96.8333
173
			};
174
			latlong["CD"] = {
175
				"latitude": 0,
176
				"longitude": 25
177
			};
178
			latlong["CF"] = {
179
				"latitude": 7,
180
				"longitude": 21
181
			};
182
			latlong["CG"] = {
183
				"latitude": -1,
184
				"longitude": 15
185
			};
186
			latlong["CH"] = {
187
				"latitude": 47,
188
				"longitude": 8
189
			};
190
			latlong["CI"] = {
191
				"latitude": 8,
192
				"longitude": -5
193
			};
194
			latlong["CK"] = {
195
				"latitude": -21.2333,
196
				"longitude": -159.7667
197
			};
198
			latlong["CL"] = {
199
				"latitude": -30,
200
				"longitude": -71
201
			};
202
			latlong["CM"] = {
203
				"latitude": 6,
204
				"longitude": 12
205
			};
206
			latlong["CN"] = {
207
				"latitude": 35,
208
				"longitude": 105
209
			};
210
			latlong["CO"] = {
211
				"latitude": 4,
212
				"longitude": -72
213
			};
214
			latlong["CR"] = {
215
				"latitude": 10,
216
				"longitude": -84
217
			};
218
			latlong["CU"] = {
219
				"latitude": 21.5,
220
				"longitude": -80
221
			};
222
			latlong["CV"] = {
223
				"latitude": 16,
224
				"longitude": -24
225
			};
226
			latlong["CX"] = {
227
				"latitude": -10.5,
228
				"longitude": 105.6667
229
			};
230
			latlong["CY"] = {
231
				"latitude": 35,
232
				"longitude": 33
233
			};
234
			latlong["CZ"] = {
235
				"latitude": 49.75,
236
				"longitude": 15.5
237
			};
238
			latlong["DE"] = {
239
				"latitude": 51,
240
				"longitude": 9
241
			};
242
			latlong["DJ"] = {
243
				"latitude": 11.5,
244
				"longitude": 43
245
			};
246
			latlong["DK"] = {
247
				"latitude": 56,
248
				"longitude": 10
249
			};
250
			latlong["DM"] = {
251
				"latitude": 15.4167,
252
				"longitude": -61.3333
253
			};
254
			latlong["DO"] = {
255
				"latitude": 19,
256
				"longitude": -70.6667
257
			};
258
			latlong["DZ"] = {
259
				"latitude": 28,
260
				"longitude": 3
261
			};
262
			latlong["EC"] = {
263
				"latitude": -2,
264
				"longitude": -77.5
265
			};
266
			latlong["EE"] = {
267
				"latitude": 59,
268
				"longitude": 26
269
			};
270
			latlong["EG"] = {
271
				"latitude": 27,
272
				"longitude": 30
273
			};
274
			latlong["EH"] = {
275
				"latitude": 24.5,
276
				"longitude": -13
277
			};
278
			latlong["ER"] = {
279
				"latitude": 15,
280
				"longitude": 39
281
			};
282
			latlong["ES"] = {
283
				"latitude": 40,
284
				"longitude": -4
285
			};
286
			latlong["ET"] = {
287
				"latitude": 8,
288
				"longitude": 38
289
			};
290
			latlong["EU"] = {
291
				"latitude": 47,
292
				"longitude": 8
293
			};
294
			latlong["FI"] = {
295
				"latitude": 62,
296
				"longitude": 26
297
			};
298
			latlong["FJ"] = {
299
				"latitude": -18,
300
				"longitude": 175
301
			};
302
			latlong["FK"] = {
303
				"latitude": -51.75,
304
				"longitude": -59
305
			};
306
			latlong["FM"] = {
307
				"latitude": 6.9167,
308
				"longitude": 158.25
309
			};
310
			latlong["FO"] = {
311
				"latitude": 62,
312
				"longitude": -7
313
			};
314
			latlong["FR"] = {
315
				"latitude": 46,
316
				"longitude": 2
317
			};
318
			latlong["GA"] = {
319
				"latitude": -1,
320
				"longitude": 11.75
321
			};
322
			latlong["GB"] = {
323
				"latitude": 54,
324
				"longitude": -2
325
			};
326
			latlong["GD"] = {
327
				"latitude": 12.1167,
328
				"longitude": -61.6667
329
			};
330
			latlong["GE"] = {
331
				"latitude": 42,
332
				"longitude": 43.5
333
			};
334
			latlong["GF"] = {
335
				"latitude": 4,
336
				"longitude": -53
337
			};
338
			latlong["GH"] = {
339
				"latitude": 8,
340
				"longitude": -2
341
			};
342
			latlong["GI"] = {
343
				"latitude": 36.1833,
344
				"longitude": -5.3667
345
			};
346
			latlong["GL"] = {
347
				"latitude": 72,
348
				"longitude": -40
349
			};
350
			latlong["GM"] = {
351
				"latitude": 13.4667,
352
				"longitude": -16.5667
353
			};
354
			latlong["GN"] = {
355
				"latitude": 11,
356
				"longitude": -10
357
			};
358
			latlong["GP"] = {
359
				"latitude": 16.25,
360
				"longitude": -61.5833
361
			};
362
			latlong["GQ"] = {
363
				"latitude": 2,
364
				"longitude": 10
365
			};
366
			latlong["GR"] = {
367
				"latitude": 39,
368
				"longitude": 22
369
			};
370
			latlong["GS"] = {
371
				"latitude": -54.5,
372
				"longitude": -37
373
			};
374
			latlong["GT"] = {
375
				"latitude": 15.5,
376
				"longitude": -90.25
377
			};
378
			latlong["GU"] = {
379
				"latitude": 13.4667,
380
				"longitude": 144.7833
381
			};
382
			latlong["GW"] = {
383
				"latitude": 12,
384
				"longitude": -15
385
			};
386
			latlong["GY"] = {
387
				"latitude": 5,
388
				"longitude": -59
389
			};
390
			latlong["HK"] = {
391
				"latitude": 22.25,
392
				"longitude": 114.1667
393
			};
394
			latlong["HM"] = {
395
				"latitude": -53.1,
396
				"longitude": 72.5167
397
			};
398
			latlong["HN"] = {
399
				"latitude": 15,
400
				"longitude": -86.5
401
			};
402
			latlong["HR"] = {
403
				"latitude": 45.1667,
404
				"longitude": 15.5
405
			};
406
			latlong["HT"] = {
407
				"latitude": 19,
408
				"longitude": -72.4167
409
			};
410
			latlong["HU"] = {
411
				"latitude": 47,
412
				"longitude": 20
413
			};
414
			latlong["ID"] = {
415
				"latitude": -5,
416
				"longitude": 120
417
			};
418
			latlong["IE"] = {
419
				"latitude": 53,
420
				"longitude": -8
421
			};
422
			latlong["IL"] = {
423
				"latitude": 31.5,
424
				"longitude": 34.75
425
			};
426
			latlong["IN"] = {
427
				"latitude": 20,
428
				"longitude": 77
429
			};
430
			latlong["IO"] = {
431
				"latitude": -6,
432
				"longitude": 71.5
433
			};
434
			latlong["IQ"] = {
435
				"latitude": 33,
436
				"longitude": 44
437
			};
438
			latlong["IR"] = {
439
				"latitude": 32,
440
				"longitude": 53
441
			};
442
			latlong["IS"] = {
443
				"latitude": 65,
444
				"longitude": -18
445
			};
446
			latlong["IT"] = {
447
				"latitude": 42.8333,
448
				"longitude": 12.8333
449
			};
450
			latlong["JM"] = {
451
				"latitude": 18.25,
452
				"longitude": -77.5
453
			};
454
			latlong["JO"] = {
455
				"latitude": 31,
456
				"longitude": 36
457
			};
458
			latlong["JP"] = {
459
				"latitude": 36,
460
				"longitude": 138
461
			};
462
			latlong["KE"] = {
463
				"latitude": 1,
464
				"longitude": 38
465
			};
466
			latlong["KG"] = {
467
				"latitude": 41,
468
				"longitude": 75
469
			};
470
			latlong["KH"] = {
471
				"latitude": 13,
472
				"longitude": 105
473
			};
474
			latlong["KI"] = {
475
				"latitude": 1.4167,
476
				"longitude": 173
477
			};
478
			latlong["KM"] = {
479
				"latitude": -12.1667,
480
				"longitude": 44.25
481
			};
482
			latlong["KN"] = {
483
				"latitude": 17.3333,
484
				"longitude": -62.75
485
			};
486
			latlong["KP"] = {
487
				"latitude": 40,
488
				"longitude": 127
489
			};
490
			latlong["KR"] = {
491
				"latitude": 37,
492
				"longitude": 127.5
493
			};
494
			latlong["KW"] = {
495
				"latitude": 29.3375,
496
				"longitude": 47.6581
497
			};
498
			latlong["KY"] = {
499
				"latitude": 19.5,
500
				"longitude": -80.5
501
			};
502
			latlong["KZ"] = {
503
				"latitude": 48,
504
				"longitude": 68
505
			};
506
			latlong["LA"] = {
507
				"latitude": 18,
508
				"longitude": 105
509
			};
510
			latlong["LB"] = {
511
				"latitude": 33.8333,
512
				"longitude": 35.8333
513
			};
514
			latlong["LC"] = {
515
				"latitude": 13.8833,
516
				"longitude": -61.1333
517
			};
518
			latlong["LI"] = {
519
				"latitude": 47.1667,
520
				"longitude": 9.5333
521
			};
522
			latlong["LK"] = {
523
				"latitude": 7,
524
				"longitude": 81
525
			};
526
			latlong["LR"] = {
527
				"latitude": 6.5,
528
				"longitude": -9.5
529
			};
530
			latlong["LS"] = {
531
				"latitude": -29.5,
532
				"longitude": 28.5
533
			};
534
			latlong["LT"] = {
535
				"latitude": 55,
536
				"longitude": 24
537
			};
538
			latlong["LU"] = {
539
				"latitude": 49.75,
540
				"longitude": 6
541
			};
542
			latlong["LV"] = {
543
				"latitude": 57,
544
				"longitude": 25
545
			};
546
			latlong["LY"] = {
547
				"latitude": 25,
548
				"longitude": 17
549
			};
550
			latlong["MA"] = {
551
				"latitude": 32,
552
				"longitude": -5
553
			};
554
			latlong["MC"] = {
555
				"latitude": 43.7333,
556
				"longitude": 7.4
557
			};
558
			latlong["MD"] = {
559
				"latitude": 47,
560
				"longitude": 29
561
			};
562
			latlong["ME"] = {
563
				"latitude": 42.5,
564
				"longitude": 19.4
565
			};
566
			latlong["MG"] = {
567
				"latitude": -20,
568
				"longitude": 47
569
			};
570
			latlong["MH"] = {
571
				"latitude": 9,
572
				"longitude": 168
573
			};
574
			latlong["MK"] = {
575
				"latitude": 41.8333,
576
				"longitude": 22
577
			};
578
			latlong["ML"] = {
579
				"latitude": 17,
580
				"longitude": -4
581
			};
582
			latlong["MM"] = {
583
				"latitude": 22,
584
				"longitude": 98
585
			};
586
			latlong["MN"] = {
587
				"latitude": 46,
588
				"longitude": 105
589
			};
590
			latlong["MO"] = {
591
				"latitude": 22.1667,
592
				"longitude": 113.55
593
			};
594
			latlong["MP"] = {
595
				"latitude": 15.2,
596
				"longitude": 145.75
597
			};
598
			latlong["MQ"] = {
599
				"latitude": 14.6667,
600
				"longitude": -61
601
			};
602
			latlong["MR"] = {
603
				"latitude": 20,
604
				"longitude": -12
605
			};
606
			latlong["MS"] = {
607
				"latitude": 16.75,
608
				"longitude": -62.2
609
			};
610
			latlong["MT"] = {
611
				"latitude": 35.8333,
612
				"longitude": 14.5833
613
			};
614
			latlong["MU"] = {
615
				"latitude": -20.2833,
616
				"longitude": 57.55
617
			};
618
			latlong["MV"] = {
619
				"latitude": 3.25,
620
				"longitude": 73
621
			};
622
			latlong["MW"] = {
623
				"latitude": -13.5,
624
				"longitude": 34
625
			};
626
			latlong["MX"] = {
627
				"latitude": 23,
628
				"longitude": -102
629
			};
630
			latlong["MY"] = {
631
				"latitude": 2.5,
632
				"longitude": 112.5
633
			};
634
			latlong["MZ"] = {
635
				"latitude": -18.25,
636
				"longitude": 35
637
			};
638
			latlong["NA"] = {
639
				"latitude": -22,
640
				"longitude": 17
641
			};
642
			latlong["NC"] = {
643
				"latitude": -21.5,
644
				"longitude": 165.5
645
			};
646
			latlong["NE"] = {
647
				"latitude": 16,
648
				"longitude": 8
649
			};
650
			latlong["NF"] = {
651
				"latitude": -29.0333,
652
				"longitude": 167.95
653
			};
654
			latlong["NG"] = {
655
				"latitude": 10,
656
				"longitude": 8
657
			};
658
			latlong["NI"] = {
659
				"latitude": 13,
660
				"longitude": -85
661
			};
662
			latlong["NL"] = {
663
				"latitude": 52.5,
664
				"longitude": 5.75
665
			};
666
			latlong["NO"] = {
667
				"latitude": 62,
668
				"longitude": 10
669
			};
670
			latlong["NP"] = {
671
				"latitude": 28,
672
				"longitude": 84
673
			};
674
			latlong["NR"] = {
675
				"latitude": -0.5333,
676
				"longitude": 166.9167
677
			};
678
			latlong["NU"] = {
679
				"latitude": -19.0333,
680
				"longitude": -169.8667
681
			};
682
			latlong["NZ"] = {
683
				"latitude": -41,
684
				"longitude": 174
685
			};
686
			latlong["OM"] = {
687
				"latitude": 21,
688
				"longitude": 57
689
			};
690
			latlong["PA"] = {
691
				"latitude": 9,
692
				"longitude": -80
693
			};
694
			latlong["PE"] = {
695
				"latitude": -10,
696
				"longitude": -76
697
			};
698
			latlong["PF"] = {
699
				"latitude": -15,
700
				"longitude": -140
701
			};
702
			latlong["PG"] = {
703
				"latitude": -6,
704
				"longitude": 147
705
			};
706
			latlong["PH"] = {
707
				"latitude": 13,
708
				"longitude": 122
709
			};
710
			latlong["PK"] = {
711
				"latitude": 30,
712
				"longitude": 70
713
			};
714
			latlong["PL"] = {
715
				"latitude": 52,
716
				"longitude": 20
717
			};
718
			latlong["PM"] = {
719
				"latitude": 46.8333,
720
				"longitude": -56.3333
721
			};
722
			latlong["PR"] = {
723
				"latitude": 18.25,
724
				"longitude": -66.5
725
			};
726
			latlong["PS"] = {
727
				"latitude": 32,
728
				"longitude": 35.25
729
			};
730
			latlong["PT"] = {
731
				"latitude": 39.5,
732
				"longitude": -8
733
			};
734
			latlong["PW"] = {
735
				"latitude": 7.5,
736
				"longitude": 134.5
737
			};
738
			latlong["PY"] = {
739
				"latitude": -23,
740
				"longitude": -58
741
			};
742
			latlong["QA"] = {
743
				"latitude": 25.5,
744
				"longitude": 51.25
745
			};
746
			latlong["RE"] = {
747
				"latitude": -21.1,
748
				"longitude": 55.6
749
			};
750
			latlong["RO"] = {
751
				"latitude": 46,
752
				"longitude": 25
753
			};
754
			latlong["RS"] = {
755
				"latitude": 44,
756
				"longitude": 21
757
			};
758
			latlong["RU"] = {
759
				"latitude": 60,
760
				"longitude": 100
761
			};
762
			latlong["RW"] = {
763
				"latitude": -2,
764
				"longitude": 30
765
			};
766
			latlong["SA"] = {
767
				"latitude": 25,
768
				"longitude": 45
769
			};
770
			latlong["SB"] = {
771
				"latitude": -8,
772
				"longitude": 159
773
			};
774
			latlong["SC"] = {
775
				"latitude": -4.5833,
776
				"longitude": 55.6667
777
			};
778
			latlong["SD"] = {
779
				"latitude": 15,
780
				"longitude": 30
781
			};
782
			latlong["SE"] = {
783
				"latitude": 62,
784
				"longitude": 15
785
			};
786
			latlong["SG"] = {
787
				"latitude": 1.3667,
788
				"longitude": 103.8
789
			};
790
			latlong["SH"] = {
791
				"latitude": -15.9333,
792
				"longitude": -5.7
793
			};
794
			latlong["SI"] = {
795
				"latitude": 46,
796
				"longitude": 15
797
			};
798
			latlong["SJ"] = {
799
				"latitude": 78,
800
				"longitude": 20
801
			};
802
			latlong["SK"] = {
803
				"latitude": 48.6667,
804
				"longitude": 19.5
805
			};
806
			latlong["SL"] = {
807
				"latitude": 8.5,
808
				"longitude": -11.5
809
			};
810
			latlong["SM"] = {
811
				"latitude": 43.7667,
812
				"longitude": 12.4167
813
			};
814
			latlong["SN"] = {
815
				"latitude": 14,
816
				"longitude": -14
817
			};
818
			latlong["SO"] = {
819
				"latitude": 10,
820
				"longitude": 49
821
			};
822
			latlong["SR"] = {
823
				"latitude": 4,
824
				"longitude": -56
825
			};
826
			latlong["ST"] = {
827
				"latitude": 1,
828
				"longitude": 7
829
			};
830
			latlong["SV"] = {
831
				"latitude": 13.8333,
832
				"longitude": -88.9167
833
			};
834
			latlong["SY"] = {
835
				"latitude": 35,
836
				"longitude": 38
837
			};
838
			latlong["SZ"] = {
839
				"latitude": -26.5,
840
				"longitude": 31.5
841
			};
842
			latlong["TC"] = {
843
				"latitude": 21.75,
844
				"longitude": -71.5833
845
			};
846
			latlong["TD"] = {
847
				"latitude": 15,
848
				"longitude": 19
849
			};
850
			latlong["TF"] = {
851
				"latitude": -43,
852
				"longitude": 67
853
			};
854
			latlong["TG"] = {
855
				"latitude": 8,
856
				"longitude": 1.1667
857
			};
858
			latlong["TH"] = {
859
				"latitude": 15,
860
				"longitude": 100
861
			};
862
			latlong["TJ"] = {
863
				"latitude": 39,
864
				"longitude": 71
865
			};
866
			latlong["TK"] = {
867
				"latitude": -9,
868
				"longitude": -172
869
			};
870
			latlong["TM"] = {
871
				"latitude": 40,
872
				"longitude": 60
873
			};
874
			latlong["TN"] = {
875
				"latitude": 34,
876
				"longitude": 9
877
			};
878
			latlong["TO"] = {
879
				"latitude": -20,
880
				"longitude": -175
881
			};
882
			latlong["TR"] = {
883
				"latitude": 39,
884
				"longitude": 35
885
			};
886
			latlong["TT"] = {
887
				"latitude": 11,
888
				"longitude": -61
889
			};
890
			latlong["TV"] = {
891
				"latitude": -8,
892
				"longitude": 178
893
			};
894
			latlong["TW"] = {
895
				"latitude": 23.5,
896
				"longitude": 121
897
			};
898
			latlong["TZ"] = {
899
				"latitude": -6,
900
				"longitude": 35
901
			};
902
			latlong["UA"] = {
903
				"latitude": 49,
904
				"longitude": 32
905
			};
906
			latlong["UG"] = {
907
				"latitude": 1,
908
				"longitude": 32
909
			};
910
			latlong["UM"] = {
911
				"latitude": 19.2833,
912
				"longitude": 166.6
913
			};
914
			latlong["US"] = {
915
				"latitude": 38,
916
				"longitude": -97
917
			};
918
			latlong["UY"] = {
919
				"latitude": -33,
920
				"longitude": -56
921
			};
922
			latlong["UZ"] = {
923
				"latitude": 41,
924
				"longitude": 64
925
			};
926
			latlong["VA"] = {
927
				"latitude": 41.9,
928
				"longitude": 12.45
929
			};
930
			latlong["VC"] = {
931
				"latitude": 13.25,
932
				"longitude": -61.2
933
			};
934
			latlong["VE"] = {
935
				"latitude": 8,
936
				"longitude": -66
937
			};
938
			latlong["VG"] = {
939
				"latitude": 18.5,
940
				"longitude": -64.5
941
			};
942
			latlong["VI"] = {
943
				"latitude": 18.3333,
944
				"longitude": -64.8333
945
			};
946
			latlong["VN"] = {
947
				"latitude": 16,
948
				"longitude": 106
949
			};
950
			latlong["VU"] = {
951
				"latitude": -16,
952
				"longitude": 167
953
			};
954
			latlong["WF"] = {
955
				"latitude": -13.3,
956
				"longitude": -176.2
957
			};
958
			latlong["WS"] = {
959
				"latitude": -13.5833,
960
				"longitude": -172.3333
961
			};
962
			latlong["YE"] = {
963
				"latitude": 15,
964
				"longitude": 48
965
			};
966
			latlong["YT"] = {
967
				"latitude": -12.8333,
968
				"longitude": 45.1667
969
			};
970
			latlong["ZA"] = {
971
				"latitude": -29,
972
				"longitude": 24
973
			};
974
			latlong["ZM"] = {
975
				"latitude": -15,
976
				"longitude": 30
977
			};
978
			latlong["ZW"] = {
979
				"latitude": -20,
980
				"longitude": 30
981
			};
982
 
983
			var mapData = [{
984
				"code": "AF",
985
				"name": "Afghanistan",
986
				"value": 32358260,
987
				"color": "#eea638"
988
			}, {
989
				"code": "AL",
990
				"name": "Albania",
991
				"value": 3215988,
992
				"color": "#d8854f"
993
			}, {
994
				"code": "DZ",
995
				"name": "Algeria",
996
				"value": 35980193,
997
				"color": "#de4c4f"
998
			}, {
999
				"code": "AO",
1000
				"name": "Angola",
1001
				"value": 19618432,
1002
				"color": "#de4c4f"
1003
			}, {
1004
				"code": "AR",
1005
				"name": "Argentina",
1006
				"value": 40764561,
1007
				"color": "#86a965"
1008
			}, {
1009
				"code": "AM",
1010
				"name": "Armenia",
1011
				"value": 3100236,
1012
				"color": "#d8854f"
1013
			}, {
1014
				"code": "AU",
1015
				"name": "Australia",
1016
				"value": 22605732,
1017
				"color": "#8aabb0"
1018
			}, {
1019
				"code": "AT",
1020
				"name": "Austria",
1021
				"value": 8413429,
1022
				"color": "#d8854f"
1023
			}, {
1024
				"code": "AZ",
1025
				"name": "Azerbaijan",
1026
				"value": 9306023,
1027
				"color": "#d8854f"
1028
			}, {
1029
				"code": "BH",
1030
				"name": "Bahrain",
1031
				"value": 1323535,
1032
				"color": "#eea638"
1033
			}, {
1034
				"code": "BD",
1035
				"name": "Bangladesh",
1036
				"value": 150493658,
1037
				"color": "#eea638"
1038
			}, {
1039
				"code": "BY",
1040
				"name": "Belarus",
1041
				"value": 9559441,
1042
				"color": "#d8854f"
1043
			}, {
1044
				"code": "BE",
1045
				"name": "Belgium",
1046
				"value": 10754056,
1047
				"color": "#d8854f"
1048
			}, {
1049
				"code": "BJ",
1050
				"name": "Benin",
1051
				"value": 9099922,
1052
				"color": "#de4c4f"
1053
			}, {
1054
				"code": "BT",
1055
				"name": "Bhutan",
1056
				"value": 738267,
1057
				"color": "#eea638"
1058
			}, {
1059
				"code": "BO",
1060
				"name": "Bolivia",
1061
				"value": 10088108,
1062
				"color": "#86a965"
1063
			}, {
1064
				"code": "BA",
1065
				"name": "Bosnia and Herzegovina",
1066
				"value": 3752228,
1067
				"color": "#d8854f"
1068
			}, {
1069
				"code": "BW",
1070
				"name": "Botswana",
1071
				"value": 2030738,
1072
				"color": "#de4c4f"
1073
			}, {
1074
				"code": "BR",
1075
				"name": "Brazil",
1076
				"value": 196655014,
1077
				"color": "#86a965"
1078
			}, {
1079
				"code": "BN",
1080
				"name": "Brunei",
1081
				"value": 405938,
1082
				"color": "#eea638"
1083
			}, {
1084
				"code": "BG",
1085
				"name": "Bulgaria",
1086
				"value": 7446135,
1087
				"color": "#d8854f"
1088
			}, {
1089
				"code": "BF",
1090
				"name": "Burkina Faso",
1091
				"value": 16967845,
1092
				"color": "#de4c4f"
1093
			}, {
1094
				"code": "BI",
1095
				"name": "Burundi",
1096
				"value": 8575172,
1097
				"color": "#de4c4f"
1098
			}, {
1099
				"code": "KH",
1100
				"name": "Cambodia",
1101
				"value": 14305183,
1102
				"color": "#eea638"
1103
			}, {
1104
				"code": "CM",
1105
				"name": "Cameroon",
1106
				"value": 20030362,
1107
				"color": "#de4c4f"
1108
			}, {
1109
				"code": "CA",
1110
				"name": "Canada",
1111
				"value": 34349561,
1112
				"color": "#a7a737"
1113
			}, {
1114
				"code": "CV",
1115
				"name": "Cape Verde",
1116
				"value": 500585,
1117
				"color": "#de4c4f"
1118
			}, {
1119
				"code": "CF",
1120
				"name": "Central African Rep.",
1121
				"value": 4486837,
1122
				"color": "#de4c4f"
1123
			}, {
1124
				"code": "TD",
1125
				"name": "Chad",
1126
				"value": 11525496,
1127
				"color": "#de4c4f"
1128
			}, {
1129
				"code": "CL",
1130
				"name": "Chile",
1131
				"value": 17269525,
1132
				"color": "#86a965"
1133
			}, {
1134
				"code": "CN",
1135
				"name": "China",
1136
				"value": 1347565324,
1137
				"color": "#eea638"
1138
			}, {
1139
				"code": "CO",
1140
				"name": "Colombia",
1141
				"value": 46927125,
1142
				"color": "#86a965"
1143
			}, {
1144
				"code": "KM",
1145
				"name": "Comoros",
1146
				"value": 753943,
1147
				"color": "#de4c4f"
1148
			}, {
1149
				"code": "CD",
1150
				"name": "Congo, Dem. Rep.",
1151
				"value": 67757577,
1152
				"color": "#de4c4f"
1153
			}, {
1154
				"code": "CG",
1155
				"name": "Congo, Rep.",
1156
				"value": 4139748,
1157
				"color": "#de4c4f"
1158
			}, {
1159
				"code": "CR",
1160
				"name": "Costa Rica",
1161
				"value": 4726575,
1162
				"color": "#a7a737"
1163
			}, {
1164
				"code": "CI",
1165
				"name": "Cote d'Ivoire",
1166
				"value": 20152894,
1167
				"color": "#de4c4f"
1168
			}, {
1169
				"code": "HR",
1170
				"name": "Croatia",
1171
				"value": 4395560,
1172
				"color": "#d8854f"
1173
			}, {
1174
				"code": "CU",
1175
				"name": "Cuba",
1176
				"value": 11253665,
1177
				"color": "#a7a737"
1178
			}, {
1179
				"code": "CY",
1180
				"name": "Cyprus",
1181
				"value": 1116564,
1182
				"color": "#d8854f"
1183
			}, {
1184
				"code": "CZ",
1185
				"name": "Czech Rep.",
1186
				"value": 10534293,
1187
				"color": "#d8854f"
1188
			}, {
1189
				"code": "DK",
1190
				"name": "Denmark",
1191
				"value": 5572594,
1192
				"color": "#d8854f"
1193
			}, {
1194
				"code": "DJ",
1195
				"name": "Djibouti",
1196
				"value": 905564,
1197
				"color": "#de4c4f"
1198
			}, {
1199
				"code": "DO",
1200
				"name": "Dominican Rep.",
1201
				"value": 10056181,
1202
				"color": "#a7a737"
1203
			}, {
1204
				"code": "EC",
1205
				"name": "Ecuador",
1206
				"value": 14666055,
1207
				"color": "#86a965"
1208
			}, {
1209
				"code": "EG",
1210
				"name": "Egypt",
1211
				"value": 82536770,
1212
				"color": "#de4c4f"
1213
			}, {
1214
				"code": "SV",
1215
				"name": "El Salvador",
1216
				"value": 6227491,
1217
				"color": "#a7a737"
1218
			}, {
1219
				"code": "GQ",
1220
				"name": "Equatorial Guinea",
1221
				"value": 720213,
1222
				"color": "#de4c4f"
1223
			}, {
1224
				"code": "ER",
1225
				"name": "Eritrea",
1226
				"value": 5415280,
1227
				"color": "#de4c4f"
1228
			}, {
1229
				"code": "EE",
1230
				"name": "Estonia",
1231
				"value": 1340537,
1232
				"color": "#d8854f"
1233
			}, {
1234
				"code": "ET",
1235
				"name": "Ethiopia",
1236
				"value": 84734262,
1237
				"color": "#de4c4f"
1238
			}, {
1239
				"code": "FJ",
1240
				"name": "Fiji",
1241
				"value": 868406,
1242
				"color": "#8aabb0"
1243
			}, {
1244
				"code": "FI",
1245
				"name": "Finland",
1246
				"value": 5384770,
1247
				"color": "#d8854f"
1248
			}, {
1249
				"code": "FR",
1250
				"name": "France",
1251
				"value": 63125894,
1252
				"color": "#d8854f"
1253
			}, {
1254
				"code": "GA",
1255
				"name": "Gabon",
1256
				"value": 1534262,
1257
				"color": "#de4c4f"
1258
			}, {
1259
				"code": "GM",
1260
				"name": "Gambia",
1261
				"value": 1776103,
1262
				"color": "#de4c4f"
1263
			}, {
1264
				"code": "GE",
1265
				"name": "Georgia",
1266
				"value": 4329026,
1267
				"color": "#d8854f"
1268
			}, {
1269
				"code": "DE",
1270
				"name": "Germany",
1271
				"value": 82162512,
1272
				"color": "#d8854f"
1273
			}, {
1274
				"code": "GH",
1275
				"name": "Ghana",
1276
				"value": 24965816,
1277
				"color": "#de4c4f"
1278
			}, {
1279
				"code": "GR",
1280
				"name": "Greece",
1281
				"value": 11390031,
1282
				"color": "#d8854f"
1283
			}, {
1284
				"code": "GT",
1285
				"name": "Guatemala",
1286
				"value": 14757316,
1287
				"color": "#a7a737"
1288
			}, {
1289
				"code": "GN",
1290
				"name": "Guinea",
1291
				"value": 10221808,
1292
				"color": "#de4c4f"
1293
			}, {
1294
				"code": "GW",
1295
				"name": "Guinea-Bissau",
1296
				"value": 1547061,
1297
				"color": "#de4c4f"
1298
			}, {
1299
				"code": "GY",
1300
				"name": "Guyana",
1301
				"value": 756040,
1302
				"color": "#86a965"
1303
			}, {
1304
				"code": "HT",
1305
				"name": "Haiti",
1306
				"value": 10123787,
1307
				"color": "#a7a737"
1308
			}, {
1309
				"code": "HN",
1310
				"name": "Honduras",
1311
				"value": 7754687,
1312
				"color": "#a7a737"
1313
			}, {
1314
				"code": "HK",
1315
				"name": "Hong Kong, China",
1316
				"value": 7122187,
1317
				"color": "#eea638"
1318
			}, {
1319
				"code": "HU",
1320
				"name": "Hungary",
1321
				"value": 9966116,
1322
				"color": "#d8854f"
1323
			}, {
1324
				"code": "IS",
1325
				"name": "Iceland",
1326
				"value": 324366,
1327
				"color": "#d8854f"
1328
			}, {
1329
				"code": "IN",
1330
				"name": "India",
1331
				"value": 1241491960,
1332
				"color": "#eea638"
1333
			}, {
1334
				"code": "ID",
1335
				"name": "Indonesia",
1336
				"value": 242325638,
1337
				"color": "#eea638"
1338
			}, {
1339
				"code": "IR",
1340
				"name": "Iran",
1341
				"value": 74798599,
1342
				"color": "#eea638"
1343
			}, {
1344
				"code": "IQ",
1345
				"name": "Iraq",
1346
				"value": 32664942,
1347
				"color": "#eea638"
1348
			}, {
1349
				"code": "IE",
1350
				"name": "Ireland",
1351
				"value": 4525802,
1352
				"color": "#d8854f"
1353
			}, {
1354
				"code": "IL",
1355
				"name": "Israel",
1356
				"value": 7562194,
1357
				"color": "#eea638"
1358
			}, {
1359
				"code": "IT",
1360
				"name": "Italy",
1361
				"value": 60788694,
1362
				"color": "#d8854f"
1363
			}, {
1364
				"code": "JM",
1365
				"name": "Jamaica",
1366
				"value": 2751273,
1367
				"color": "#a7a737"
1368
			}, {
1369
				"code": "JP",
1370
				"name": "Japan",
1371
				"value": 126497241,
1372
				"color": "#eea638"
1373
			}, {
1374
				"code": "JO",
1375
				"name": "Jordan",
1376
				"value": 6330169,
1377
				"color": "#eea638"
1378
			}, {
1379
				"code": "KZ",
1380
				"name": "Kazakhstan",
1381
				"value": 16206750,
1382
				"color": "#eea638"
1383
			}, {
1384
				"code": "KE",
1385
				"name": "Kenya",
1386
				"value": 41609728,
1387
				"color": "#de4c4f"
1388
			}, {
1389
				"code": "KR",
1390
				"name": "Korea, Dem. Rep.",
1391
				"value": 24451285,
1392
				"color": "#eea638"
1393
			}, {
1394
				"code": "KP",
1395
				"name": "Korea, Rep.",
1396
				"value": 48391343,
1397
				"color": "#eea638"
1398
			}, {
1399
				"code": "KW",
1400
				"name": "Kuwait",
1401
				"value": 2818042,
1402
				"color": "#eea638"
1403
			}, {
1404
				"code": "KG",
1405
				"name": "Kyrgyzstan",
1406
				"value": 5392580,
1407
				"color": "#eea638"
1408
			}, {
1409
				"code": "LA",
1410
				"name": "Laos",
1411
				"value": 6288037,
1412
				"color": "#eea638"
1413
			}, {
1414
				"code": "LV",
1415
				"name": "Latvia",
1416
				"value": 2243142,
1417
				"color": "#d8854f"
1418
			}, {
1419
				"code": "LB",
1420
				"name": "Lebanon",
1421
				"value": 4259405,
1422
				"color": "#eea638"
1423
			}, {
1424
				"code": "LS",
1425
				"name": "Lesotho",
1426
				"value": 2193843,
1427
				"color": "#de4c4f"
1428
			}, {
1429
				"code": "LR",
1430
				"name": "Liberia",
1431
				"value": 4128572,
1432
				"color": "#de4c4f"
1433
			}, {
1434
				"code": "LY",
1435
				"name": "Libya",
1436
				"value": 6422772,
1437
				"color": "#de4c4f"
1438
			}, {
1439
				"code": "LT",
1440
				"name": "Lithuania",
1441
				"value": 3307481,
1442
				"color": "#d8854f"
1443
			}, {
1444
				"code": "LU",
1445
				"name": "Luxembourg",
1446
				"value": 515941,
1447
				"color": "#d8854f"
1448
			}, {
1449
				"code": "MK",
1450
				"name": "Macedonia, FYR",
1451
				"value": 2063893,
1452
				"color": "#d8854f"
1453
			}, {
1454
				"code": "MG",
1455
				"name": "Madagascar",
1456
				"value": 21315135,
1457
				"color": "#de4c4f"
1458
			}, {
1459
				"code": "MW",
1460
				"name": "Malawi",
1461
				"value": 15380888,
1462
				"color": "#de4c4f"
1463
			}, {
1464
				"code": "MY",
1465
				"name": "Malaysia",
1466
				"value": 28859154,
1467
				"color": "#eea638"
1468
			}, {
1469
				"code": "ML",
1470
				"name": "Mali",
1471
				"value": 15839538,
1472
				"color": "#de4c4f"
1473
			}, {
1474
				"code": "MR",
1475
				"name": "Mauritania",
1476
				"value": 3541540,
1477
				"color": "#de4c4f"
1478
			}, {
1479
				"code": "MU",
1480
				"name": "Mauritius",
1481
				"value": 1306593,
1482
				"color": "#de4c4f"
1483
			}, {
1484
				"code": "MX",
1485
				"name": "Mexico",
1486
				"value": 114793341,
1487
				"color": "#a7a737"
1488
			}, {
1489
				"code": "MD",
1490
				"name": "Moldova",
1491
				"value": 3544864,
1492
				"color": "#d8854f"
1493
			}, {
1494
				"code": "MN",
1495
				"name": "Mongolia",
1496
				"value": 2800114,
1497
				"color": "#eea638"
1498
			}, {
1499
				"code": "ME",
1500
				"name": "Montenegro",
1501
				"value": 632261,
1502
				"color": "#d8854f"
1503
			}, {
1504
				"code": "MA",
1505
				"name": "Morocco",
1506
				"value": 32272974,
1507
				"color": "#de4c4f"
1508
			}, {
1509
				"code": "MZ",
1510
				"name": "Mozambique",
1511
				"value": 23929708,
1512
				"color": "#de4c4f"
1513
			}, {
1514
				"code": "MM",
1515
				"name": "Myanmar",
1516
				"value": 48336763,
1517
				"color": "#eea638"
1518
			}, {
1519
				"code": "NA",
1520
				"name": "Namibia",
1521
				"value": 2324004,
1522
				"color": "#de4c4f"
1523
			}, {
1524
				"code": "NP",
1525
				"name": "Nepal",
1526
				"value": 30485798,
1527
				"color": "#eea638"
1528
			}, {
1529
				"code": "NL",
1530
				"name": "Netherlands",
1531
				"value": 16664746,
1532
				"color": "#d8854f"
1533
			}, {
1534
				"code": "NZ",
1535
				"name": "New Zealand",
1536
				"value": 4414509,
1537
				"color": "#8aabb0"
1538
			}, {
1539
				"code": "NI",
1540
				"name": "Nicaragua",
1541
				"value": 5869859,
1542
				"color": "#a7a737"
1543
			}, {
1544
				"code": "NE",
1545
				"name": "Niger",
1546
				"value": 16068994,
1547
				"color": "#de4c4f"
1548
			}, {
1549
				"code": "NG",
1550
				"name": "Nigeria",
1551
				"value": 162470737,
1552
				"color": "#de4c4f"
1553
			}, {
1554
				"code": "NO",
1555
				"name": "Norway",
1556
				"value": 4924848,
1557
				"color": "#d8854f"
1558
			}, {
1559
				"code": "OM",
1560
				"name": "Oman",
1561
				"value": 2846145,
1562
				"color": "#eea638"
1563
			}, {
1564
				"code": "PK",
1565
				"name": "Pakistan",
1566
				"value": 176745364,
1567
				"color": "#eea638"
1568
			}, {
1569
				"code": "PA",
1570
				"name": "Panama",
1571
				"value": 3571185,
1572
				"color": "#a7a737"
1573
			}, {
1574
				"code": "PG",
1575
				"name": "Papua New Guinea",
1576
				"value": 7013829,
1577
				"color": "#8aabb0"
1578
			}, {
1579
				"code": "PY",
1580
				"name": "Paraguay",
1581
				"value": 6568290,
1582
				"color": "#86a965"
1583
			}, {
1584
				"code": "PE",
1585
				"name": "Peru",
1586
				"value": 29399817,
1587
				"color": "#86a965"
1588
			}, {
1589
				"code": "PH",
1590
				"name": "Philippines",
1591
				"value": 94852030,
1592
				"color": "#eea638"
1593
			}, {
1594
				"code": "PL",
1595
				"name": "Poland",
1596
				"value": 38298949,
1597
				"color": "#d8854f"
1598
			}, {
1599
				"code": "PT",
1600
				"name": "Portugal",
1601
				"value": 10689663,
1602
				"color": "#d8854f"
1603
			}, {
1604
				"code": "PR",
1605
				"name": "Puerto Rico",
1606
				"value": 3745526,
1607
				"color": "#a7a737"
1608
			}, {
1609
				"code": "QA",
1610
				"name": "Qatar",
1611
				"value": 1870041,
1612
				"color": "#eea638"
1613
			}, {
1614
				"code": "RO",
1615
				"name": "Romania",
1616
				"value": 21436495,
1617
				"color": "#d8854f"
1618
			}, {
1619
				"code": "RU",
1620
				"name": "Russia",
1621
				"value": 142835555,
1622
				"color": "#d8854f"
1623
			}, {
1624
				"code": "RW",
1625
				"name": "Rwanda",
1626
				"value": 10942950,
1627
				"color": "#de4c4f"
1628
			}, {
1629
				"code": "SA",
1630
				"name": "Saudi Arabia",
1631
				"value": 28082541,
1632
				"color": "#eea638"
1633
			}, {
1634
				"code": "SN",
1635
				"name": "Senegal",
1636
				"value": 12767556,
1637
				"color": "#de4c4f"
1638
			}, {
1639
				"code": "RS",
1640
				"name": "Serbia",
1641
				"value": 9853969,
1642
				"color": "#d8854f"
1643
			}, {
1644
				"code": "SL",
1645
				"name": "Sierra Leone",
1646
				"value": 5997486,
1647
				"color": "#de4c4f"
1648
			}, {
1649
				"code": "SG",
1650
				"name": "Singapore",
1651
				"value": 5187933,
1652
				"color": "#eea638"
1653
			}, {
1654
				"code": "SK",
1655
				"name": "Slovak Republic",
1656
				"value": 5471502,
1657
				"color": "#d8854f"
1658
			}, {
1659
				"code": "SI",
1660
				"name": "Slovenia",
1661
				"value": 2035012,
1662
				"color": "#d8854f"
1663
			}, {
1664
				"code": "SB",
1665
				"name": "Solomon Islands",
1666
				"value": 552267,
1667
				"color": "#8aabb0"
1668
			}, {
1669
				"code": "SO",
1670
				"name": "Somalia",
1671
				"value": 9556873,
1672
				"color": "#de4c4f"
1673
			}, {
1674
				"code": "ZA",
1675
				"name": "South Africa",
1676
				"value": 50459978,
1677
				"color": "#de4c4f"
1678
			}, {
1679
				"code": "ES",
1680
				"name": "Spain",
1681
				"value": 46454895,
1682
				"color": "#d8854f"
1683
			}, {
1684
				"code": "LK",
1685
				"name": "Sri Lanka",
1686
				"value": 21045394,
1687
				"color": "#eea638"
1688
			}, {
1689
				"code": "SD",
1690
				"name": "Sudan",
1691
				"value": 34735288,
1692
				"color": "#de4c4f"
1693
			}, {
1694
				"code": "SR",
1695
				"name": "Suriname",
1696
				"value": 529419,
1697
				"color": "#86a965"
1698
			}, {
1699
				"code": "SZ",
1700
				"name": "Swaziland",
1701
				"value": 1203330,
1702
				"color": "#de4c4f"
1703
			}, {
1704
				"code": "SE",
1705
				"name": "Sweden",
1706
				"value": 9440747,
1707
				"color": "#d8854f"
1708
			}, {
1709
				"code": "CH",
1710
				"name": "Switzerland",
1711
				"value": 7701690,
1712
				"color": "#d8854f"
1713
			}, {
1714
				"code": "SY",
1715
				"name": "Syria",
1716
				"value": 20766037,
1717
				"color": "#eea638"
1718
			}, {
1719
				"code": "TW",
1720
				"name": "Taiwan",
1721
				"value": 23072000,
1722
				"color": "#eea638"
1723
			}, {
1724
				"code": "TJ",
1725
				"name": "Tajikistan",
1726
				"value": 6976958,
1727
				"color": "#eea638"
1728
			}, {
1729
				"code": "TZ",
1730
				"name": "Tanzania",
1731
				"value": 46218486,
1732
				"color": "#de4c4f"
1733
			}, {
1734
				"code": "TH",
1735
				"name": "Thailand",
1736
				"value": 69518555,
1737
				"color": "#eea638"
1738
			}, {
1739
				"code": "TG",
1740
				"name": "Togo",
1741
				"value": 6154813,
1742
				"color": "#de4c4f"
1743
			}, {
1744
				"code": "TT",
1745
				"name": "Trinidad and Tobago",
1746
				"value": 1346350,
1747
				"color": "#a7a737"
1748
			}, {
1749
				"code": "TN",
1750
				"name": "Tunisia",
1751
				"value": 10594057,
1752
				"color": "#de4c4f"
1753
			}, {
1754
				"code": "TR",
1755
				"name": "Turkey",
1756
				"value": 73639596,
1757
				"color": "#d8854f"
1758
			}, {
1759
				"code": "TM",
1760
				"name": "Turkmenistan",
1761
				"value": 5105301,
1762
				"color": "#eea638"
1763
			}, {
1764
				"code": "UG",
1765
				"name": "Uganda",
1766
				"value": 34509205,
1767
				"color": "#de4c4f"
1768
			}, {
1769
				"code": "UA",
1770
				"name": "Ukraine",
1771
				"value": 45190180,
1772
				"color": "#d8854f"
1773
			}, {
1774
				"code": "AE",
1775
				"name": "United Arab Emirates",
1776
				"value": 7890924,
1777
				"color": "#eea638"
1778
			}, {
1779
				"code": "GB",
1780
				"name": "United Kingdom",
1781
				"value": 62417431,
1782
				"color": "#d8854f"
1783
			}, {
1784
				"code": "US",
1785
				"name": "United States",
1786
				"value": 313085380,
1787
				"color": "#a7a737"
1788
			}, {
1789
				"code": "UY",
1790
				"name": "Uruguay",
1791
				"value": 3380008,
1792
				"color": "#86a965"
1793
			}, {
1794
				"code": "UZ",
1795
				"name": "Uzbekistan",
1796
				"value": 27760267,
1797
				"color": "#eea638"
1798
			}, {
1799
				"code": "VE",
1800
				"name": "Venezuela",
1801
				"value": 29436891,
1802
				"color": "#86a965"
1803
			}, {
1804
				"code": "PS",
1805
				"name": "West Bank and Gaza",
1806
				"value": 4152369,
1807
				"color": "#eea638"
1808
			}, {
1809
				"code": "VN",
1810
				"name": "Vietnam",
1811
				"value": 88791996,
1812
				"color": "#eea638"
1813
			}, {
1814
				"code": "YE",
1815
				"name": "Yemen, Rep.",
1816
				"value": 24799880,
1817
				"color": "#eea638"
1818
			}, {
1819
				"code": "ZM",
1820
				"name": "Zambia",
1821
				"value": 13474959,
1822
				"color": "#de4c4f"
1823
			}, {
1824
				"code": "ZW",
1825
				"name": "Zimbabwe",
1826
				"value": 12754378,
1827
				"color": "#de4c4f"
1828
			}];
1829
 
1830
 
1831
			var map;
1832
			var minBulletSize = 3;
1833
			var maxBulletSize = 70;
1834
			var min = Infinity;
1835
			var max = -Infinity;
1836
 
1837
			AmCharts.theme = AmCharts.themes.black;
1838
 
1839
			// get min and max values
1840
			for (var i = 0; i < mapData.length; i++) {
1841
				var value = mapData[i].value;
1842
				if (value < min) {
1843
					min = value;
1844
				}
1845
				if (value > max) {
1846
					max = value;
1847
				}
1848
			}
1849
 
1850
			// build map
1851
			AmCharts.ready(function() {
1852
				map = new AmCharts.AmMap();
1853
 
1854
				map.addTitle("Population of the World in 2011", 14);
1855
				map.addTitle("source: Gapminder", 11);
1856
				map.areasSettings = {
1857
					unlistedAreasColor: "#FFFFFF",
1858
					unlistedAreasAlpha: 0.1
1859
				};
1860
				map.imagesSettings = {
1861
					balloonText: "<span style='font-size:14px;'><b>[[title]]</b>: [[value]]</span>",
1862
					alpha: 0.6
1863
				}
1864
 
1865
				var dataProvider = {
1866
					mapVar: AmCharts.maps.worldLow,
1867
					images: []
1868
				}
1869
 
1870
				// create circle for each country
1871
 
1872
				// it's better to use circle square to show difference between values, not a radius
1873
				var maxSquare = maxBulletSize * maxBulletSize * 2 * Math.PI;
1874
				var minSquare = minBulletSize * minBulletSize * 2 * Math.PI;
1875
 
1876
				// create circle for each country
1877
				for (var i = 0; i < mapData.length; i++) {
1878
					var dataItem = mapData[i];
1879
					var value = dataItem.value;
1880
					// calculate size of a bubble
1881
					var square = (value - min) / (max - min) * (maxSquare - minSquare) + minSquare;
1882
					if (square < minSquare) {
1883
						square = minSquare;
1884
					}
1885
					var size = Math.sqrt(square / (Math.PI * 2));
1886
					var id = dataItem.code;
1887
 
1888
					dataProvider.images.push({
1889
						type: "circle",
1890
						width: size,
1891
						height: size,
1892
						color: dataItem.color,
1893
						longitude: latlong[id].longitude,
1894
						latitude: latlong[id].latitude,
1895
						title: dataItem.name,
1896
						value: value
1897
					});
1898
				}
1899
 
1900
 
1901
 
1902
				// the following code uses circle radius to show the difference
1903
				/*
1904
				for (var i = 0; i < mapData.length; i++) {
1905
					var dataItem = mapData[i];
1906
					var value = dataItem.value;
1907
					// calculate size of a bubble
1908
					var size = (value - min) / (max - min) * (maxBulletSize - minBulletSize) + minBulletSize;
1909
					if (size < minBulletSize) {
1910
						size = minBulletSize;
1911
					}
1912
					var id = dataItem.code;
1913
 
1914
					dataProvider.images.push({
1915
						type: "circle",
1916
						width: size,
1917
						height: size,
1918
						color: dataItem.color,
1919
						longitude: latlong[id].longitude,
1920
						latitude: latlong[id].latitude,
1921
						title: dataItem.name,
1922
						value: value
1923
					});
1924
				}*/
1925
 
1926
 
1927
 
1928
				map.dataProvider = dataProvider;
1929
 
1930
				map.write("mapdiv");
1931
			});
1932
		</script>
1933
    </head>
1934
	<link rel="stylesheet" href="style.css" type="text/css">
1935
    <body style="background-color:#222222;">
1936
        <div id="mapdiv" style="width: 100%; height: 600px;"></div>
1937
        <br>
1938
        <div style="text-align:center; font-size:14px">
1939
	        <a href="#" onclick="map.setProjection('winkel3')">Winkel 3</a> |
1940
	        <a href="#" onclick="map.setProjection('eckert3')">Eckert 3</a> |
1941
	        <a href="#" onclick="map.setProjection('eckert5')">Eckert 5</a> |
1942
	        <a href="#" onclick="map.setProjection('eckert6')">Eckert 6</a> |
1943
	        <a href="#" onclick="map.setProjection('miller')">Miller</a> |
1944
	        <a href="#" onclick="map.setProjection('equirectangular')">Equirectangular</a> |
1945
	        <a href="#" onclick="map.setProjection('mercator')">Mercator</a>
1946
    	</div>
1947
 
1948
    </body>
1949
 
1950
</html>