forked from neveldo/jQuery-Mapael
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexamples.html
More file actions
161 lines (137 loc) · 3.41 KB
/
examples.html
File metadata and controls
161 lines (137 loc) · 3.41 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Demo</title>
<style type="text/css">
.mapTooltip {
position:fixed;
background-color : #fff;
moz-opacity:0.70;
opacity: 0.70;
filter:alpha(opacity=70);
border-radius:10px;
padding : 10px;
z-index: 1000;
max-width: 200px;
display:none;
color:#343434;
}
.cityFrance {
background-color:#343434;
border-radius:10px;
width:400px;
}
.mapLegend {
}
h1 {
font-size:30px;
color:#3d3d3d;
margin:auto;
margin-top:50px;
}
h2 {
font-size:22px;
color:#3d3d3d;
margin-top:50px;
}
.container {
margin:auto;
width:80%;
}
.zoomIn, .zoomOut {
background-color:#fff;
border:1px solid #ccc;
color:#000;
width:15px;
height:15px;
line-height: 15px;
text-align:center;
border-radius:3px;
cursor:pointer;
position:absolute;
top : 10px;
font-weight:bold;
left : 10px;
-webkit-user-select: none; // For Webkit
-khtml-user-select: none;
-moz-user-select: none; // For Mozilla
-o-user-select: none;
user-select: none; // Default
}
.zoomOut {
top:30px;
}
.map {
position:relative;
}
</style>
</head>
<body>
<div class="container">
<h1>Map examples</h1>
<h2>Minimal example (France)</h2>
<div class="maparea1">
<div class="map">
<span>Alternative content for the map</span>
</div>
</div>
<h2>Refreshable map of France with coloured cities and areas labels and zoom buttons</h2>
<div class="maparea2">
<input type="button" value="Update the map !" id="refreshmaparea2" />
<div class="map">
<span>Alternative content for the map</span>
</div>
</div>
<h2>Map with some overloaded parameters and 'onclick' callback on areas (France)</h2>
<div class="maparea3">
<div class="map">
<span>Alternative content for the map</span>
</div>
</div>
<h2>Population of France by department with a legend</h2>
<div class="maparea4">
<div class="map">
<span>Alternative content for the map</span>
</div>
<div class="areaLegend">
<span>Alternative content for the legend</span>
</div>
</div>
<h2>Population of the 1000 more populated french cities with a legend</h2>
<div class="maparea5">
<div class="map">
<span>Alternative content for the map</span>
</div>
<div class="cityFrance">
<span>Alternative content for the legend</span>
</div>
</div>
<h2>Map of the world with the population by country</h2>
<div class="maparea6">
<div class="map">
<span>Alternative content for the map</span>
</div>
<div class="areaLegend">
<span>Alternative content for the legend</span>
</div>
<div class="plotLegend">
<span>Alternative content for the legend</span>
</div>
</div>
<h2>Map of USA with some plotted cities</h2>
<div class="maparea7">
<div class="map">
<span>Alternative content for the map</span>
</div>
</div>
</div>
<script src="http://code.jquery.com/jquery-1.9.1.min.js" charset="utf-8" ></script>
<script src="js/raphael/raphael-min.js" charset="utf-8" ></script>
<script src="js/jquery.mapael.js" charset="utf-8" ></script>
<script src="js/maps/france_departments.js" charset="utf-8" ></script>
<script src="js/maps/world_countries.js" charset="utf-8" ></script>
<script src="js/maps/usa_states.js" charset="utf-8" ></script>
<script src="examples.js" charset="utf-8" ></script>
</body>
</html>