_JSON_mapWithPatterns.html
2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>amMap examples</title>
<link rel="stylesheet" href="../ammap/ammap.css" type="text/css">
<script src="../ammap/ammap.js" type="text/javascript"></script>
<!-- map file should be included after ammap.js -->
<script src="../ammap/maps/js/continentsLow.js" type="text/javascript"></script>
<script type="text/javascript">
AmCharts.makeChart("mapdiv", {
type: "map",
handDrawn: true,
dragMap: false,
color:"#FFFFFF",
areasSettings: {
autoZoom: false,
rollOverOutlineColor: "#FFFFFF",
selectedColor: "#FFFFFF",
rollOverColor: "#FFFFFF",
outlineAlpha: 1,
outlineColor: "#FFFFFF",
outlineThickness: 1,
color: "#000000"
},
dataProvider: {
map: "continentsLow",
areas: [{
"id": "africa",
"title": "Africa",
"pattern": {
"url": "../ammap/patterns/white/pattern1.png",
width: 4,
height: 4
}
}, {
"id": "asia",
"title": "Asia",
"pattern": {
"url": "../ammap/patterns/white/pattern2.png",
width: 4,
height: 4
}
}, {
"id": "australia",
"title": "Australia",
"pattern": {
"url": "../ammap/patterns/white/pattern3.png",
width: 4,
height: 4
}
}, {
"id": "europe",
"title": "Europe",
"pattern": {
"url": "../ammap/patterns/white/pattern4.png",
width: 4,
height: 4
}
}, {
"id": "north_america",
"title": "North America",
"pattern": {
"url": "../ammap/patterns/white/pattern5.png",
width: 4,
height: 4
}
}, {
"id": "south_america",
"title": "South America",
"pattern": {
"url": "../ammap/patterns/white/pattern6.png",
width: 4,
height: 4
}
}]
},
zoomControl: {
panControlEnabled: false,
zoomControlEnabled: false
}
});
</script>
</head>
<body style="background-image: url('images/board.jpg'); background-color:#000000;">
<div id="mapdiv" style="width: 100%; height: 500px;"></div>
</body>
</html>