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