You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1949 lines
36 KiB

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