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.

237 lines
5.9 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>
  11. var map;
  12. AmCharts.ready(function() {
  13. map = new AmCharts.AmMap();
  14. var dataProvider = {
  15. mapVar: AmCharts.maps.worldLow,
  16. zoomLevel: 3.5,
  17. zoomLongitude: 10,
  18. zoomLatitude: 52
  19. };
  20. map.areasSettings = {
  21. unlistedAreasColor: "#DDDDDD",
  22. rollOverOutlineColor: "#FFFFFF",
  23. rollOverColor: "#CC0000",
  24. balloonText: "[[title]] joined EU at [[customData]]"
  25. };
  26. map.creditsPosition = "top-right";
  27. dataProvider.areas = [
  28. {
  29. title: "Austria",
  30. id: "AT",
  31. color: "#3366CC",
  32. customData: "1995",
  33. groupId: "before2004"},
  34. {
  35. title: "Ireland",
  36. id: "IE",
  37. color: "#3366CC",
  38. customData: "1973",
  39. groupId: "before2004"},
  40. {
  41. title: "Denmark",
  42. id: "DK",
  43. color: "#3366CC",
  44. customData: "1973",
  45. groupId: "before2004"},
  46. {
  47. title: "Finland",
  48. id: "FI",
  49. color: "#3366CC",
  50. customData: "1995",
  51. groupId: "before2004"},
  52. {
  53. title: "Sweden",
  54. id: "SE",
  55. color: "#3366CC",
  56. customData: "1995",
  57. groupId: "before2004"},
  58. {
  59. title: "Great Britain",
  60. id: "GB",
  61. color: "#3366CC",
  62. customData: "1973",
  63. groupId: "before2004"},
  64. {
  65. title: "Italy",
  66. id: "IT",
  67. color: "#3366CC",
  68. customData: "1957",
  69. groupId: "before2004"},
  70. {
  71. title: "France",
  72. id: "FR",
  73. color: "#3366CC",
  74. customData: "1957",
  75. groupId: "before2004"},
  76. {
  77. title: "Spain",
  78. id: "ES",
  79. color: "#3366CC",
  80. customData: "1986",
  81. groupId: "before2004"},
  82. {
  83. title: "Greece",
  84. id: "GR",
  85. color: "#3366CC",
  86. customData: "1981",
  87. groupId: "before2004"},
  88. {
  89. title: "Germany",
  90. id: "DE",
  91. color: "#3366CC",
  92. customData: "1957",
  93. groupId: "before2004"},
  94. {
  95. title: "Belgium",
  96. id: "BE",
  97. color: "#3366CC",
  98. customData: "1957",
  99. groupId: "before2004"},
  100. {
  101. title: "Luxembourg",
  102. id: "LU",
  103. color: "#3366CC",
  104. customData: "1957",
  105. groupId: "before2004"},
  106. {
  107. title: "Netherlands",
  108. id: "NL",
  109. color: "#3366CC",
  110. customData: "1957",
  111. groupId: "before2004"},
  112. {
  113. title: "Portugal",
  114. id: "PT",
  115. color: "#3366CC",
  116. customData: "1986",
  117. groupId: "before2004"},
  118. {
  119. title: "Lithuania",
  120. id: "LT",
  121. color: "#FFCC33",
  122. customData: "2004",
  123. groupId: "2004"},
  124. {
  125. title: "Latvia",
  126. id: "LV",
  127. color: "#FFCC33",
  128. customData: "2004",
  129. groupId: "2004"},
  130. {
  131. title: "Czech Republic ",
  132. id: "CZ",
  133. color: "#FFCC33",
  134. customData: "2004",
  135. groupId: "2004"},
  136. {
  137. title: "Slovakia",
  138. id: "SK",
  139. color: "#FFCC33",
  140. customData: "2004",
  141. groupId: "2004"},
  142. {
  143. title: "Slovenia",
  144. id: "SI",
  145. color: "#FFCC33",
  146. customData: "2004",
  147. groupId: "2004"},
  148. {
  149. title: "Estonia",
  150. id: "EE",
  151. color: "#FFCC33",
  152. customData: "2004",
  153. groupId: "2004"},
  154. {
  155. title: "Hungary",
  156. id: "HU",
  157. color: "#FFCC33",
  158. customData: "2004",
  159. groupId: "2004"},
  160. {
  161. title: "Cyprus",
  162. id: "CY",
  163. color: "#FFCC33",
  164. customData: "2004",
  165. groupId: "2004"},
  166. {
  167. title: "Malta",
  168. id: "MT",
  169. color: "#FFCC33",
  170. customData: "2004",
  171. groupId: "2004"},
  172. {
  173. title: "Poland",
  174. id: "PL",
  175. color: "#FFCC33",
  176. customData: "2004",
  177. groupId: "2004"},
  178. {
  179. title: "Romania",
  180. id: "RO",
  181. color: "#66CC99",
  182. customData: "2007",
  183. groupId: "2007"},
  184. {
  185. title: "Bulgaria",
  186. id: "BG",
  187. color: "#66CC99",
  188. customData: "2007",
  189. groupId: "2007"}
  190. ];
  191. map.dataProvider = dataProvider;
  192. var legend = {
  193. width: 600,
  194. backgroundAlpha: 0.5,
  195. backgroundColor: "#FFFFFF",
  196. borderColor: "#666666",
  197. borderAlpha: 1,
  198. bottom: 15,
  199. left: 15,
  200. horizontalGap: 10,
  201. data: [
  202. {
  203. title: "Joined EU before 2004",
  204. color: "#3366CC"},
  205. {
  206. title: "Joined EU at 2004",
  207. color: "#FFCC33"},
  208. {
  209. title: "Joined EU at 2007",
  210. color: "#66CC99"}
  211. ]
  212. };
  213. map.addLegend(legend);
  214. map.write("mapdiv");
  215. });
  216. </script>
  217. </head>
  218. <body>
  219. <div id="mapdiv" style="width: 800px; background-color:#eeeeee; height: 500px;"></div>
  220. </body>
  221. </html>