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.

102 lines
2.3 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 examples</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/continentsLow.js" type="text/javascript"></script>
  10. <script>
  11. var map;
  12. AmCharts.ready(function() {
  13. var map;
  14. map = new AmCharts.AmMap();
  15. map.dragMap = false;
  16. map.color = "#FFFFFF";
  17. map.areasSettings = {
  18. autoZoom: false,
  19. rollOverOutlineColor: "#FFFFFF",
  20. selectedColor: "#FFFFFF",
  21. rollOverColor: "#FFFFFF",
  22. outlineAlpha: 1,
  23. outlineColor: "#FFFFFF",
  24. outlineThickness: 1,
  25. color: "#000000"
  26. };
  27. map.dataProvider = {
  28. mapVar: AmCharts.maps.continentsLow,
  29. areas: [{
  30. "id": "africa",
  31. "title": "Africa",
  32. "pattern": {
  33. "url": "patterns/white/pattern1.png",
  34. width: 4,
  35. height: 4
  36. }
  37. }, {
  38. "id": "asia",
  39. "title": "Asia",
  40. "pattern": {
  41. "url": "patterns/white/pattern2.png",
  42. width: 4,
  43. height: 4
  44. }
  45. }, {
  46. "id": "australia",
  47. "title": "Australia",
  48. "pattern": {
  49. "url": "patterns/white/pattern3.png",
  50. width: 4,
  51. height: 4
  52. }
  53. }, {
  54. "id": "europe",
  55. "title": "Europe",
  56. "pattern": {
  57. "url": "patterns/white/pattern4.png",
  58. width: 4,
  59. height: 4
  60. }
  61. }, {
  62. "id": "north_america",
  63. "title": "North America",
  64. "pattern": {
  65. "url": "patterns/white/pattern5.png",
  66. width: 4,
  67. height: 4
  68. }
  69. }, {
  70. "id": "south_america",
  71. "title": "South America",
  72. "pattern": {
  73. "url": "patterns/white/pattern6.png",
  74. width: 4,
  75. height: 4
  76. }
  77. }]
  78. };
  79. var zoomControl = map.zoomControl;
  80. zoomControl.panControlEnabled = false;
  81. zoomControl.zoomControlEnabled = false;
  82. map.write("mapdiv");
  83. });
  84. </script>
  85. </head>
  86. <body style="background-image: url('images/board.jpg'); background-color:#000000;">
  87. <div id="mapdiv" style="width: 100%; height: 500px;"></div>
  88. </body>
  89. </html>