-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
70 lines (70 loc) · 2.3 KB
/
index.html
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
<html>
<head>
<title>Mapa interactivo de España SVG/RaphaëlJs - Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="lib/raphael-min.js"></script>
<script type="text/javascript" src="lib/spain-map.js"></script>
<style type="text/css">
body {
background: #fff;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
text-align: center;
color: #555;
}
h1 {
font-size: 25px;
padding: 30px 0 10px;
}
p {
padding-bottom: 30px;
}
.agile img {
border: none;
margin-top: 10px;
}
.agile {
padding: 50px;
font-size: 15px;
}
a {
color: #66bbdd;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<h1>Mapa interactivo de España SVG/RaphaëlJs</h1>
<p>Mapa vectorial de España interactivo creado a partir de un mapa SVG y la librería <a href="http://raphaeljs.com" target="_blank">RaphaëlJs</a>.</p>
<a href="https://github.com/javiertoledo/spain-map"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
<div id="map"></div>
<div class="agile">
Creado por <a href="http://twitter.com" title="Javier Toledo" target="_blank">Javier Toledo</a> en<br/>
<a href="http://theagilemonkeys.com" title="Desarrollo de aplicaciones para web y dispositivos móviles" target="_blank">
<img src="http://theagilemonkeys.com/assets/highlights/logolight-a0469cb5d834613622ccfaa81237b42d.png" alt="The Agile Monkeys" width="210" height="48"/>
</a>
</div>
<script type="text/javascript">
new SpainMap({
id: 'map',
width: 700,
height: 500,
fillColor: "#eeeeee",
strokeColor: "#cccccc",
strokeWidth: 0.7,
selectedColor: "#66bbdd",
animationDuration: 200,
onClick: function(province, event) {
alert("Has seleccionado " + province.name);
}
//onMouseOver: function(province, event) {
// console.log('Navigating through ' + province.name);
//},
//onMouseOut: function(province, event) {
// console.log('Leaving ' + province.name);
//}
});
</script>
</body>