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.

47 lines
1.2 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. <!-- check ammap/maps/js/ folder to see all available countries -->
  9. <!-- map file should be included after ammap.js -->
  10. <script src="../ammap/maps/js/japanLow.js" type="text/javascript"></script>
  11. <script>
  12. var map;
  13. AmCharts.ready(function() {
  14. map = new AmCharts.AmMap();
  15. map.balloon.color = "#000000";
  16. var dataProvider = {
  17. mapVar: AmCharts.maps.japanLow,
  18. getAreasFromMap:true
  19. };
  20. map.dataProvider = dataProvider;
  21. map.areasSettings = {
  22. autoZoom: true,
  23. selectedColor: "#CC0000"
  24. };
  25. map.smallMap = new AmCharts.SmallMap();
  26. map.write("mapdiv");
  27. });
  28. </script>
  29. </head>
  30. <body>
  31. <div id="mapdiv" style="width: 800px; background-color:#EEEEEE; height: 500px;"></div>
  32. </body>
  33. </html>