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
|
<!doctype html>
<html lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>France Map </title>
<link href="Css/jqvmap.css" media="screen" rel="stylesheet" type="text/css" />
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery.vmap.js" type="text/javascript"></script>
<script src="js/jquery.vmap.france.js" type="text/javascript"></script>
<script src="js/jquery.vmap.colorsFrance.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#francemap').vectorMap({
map: 'france_fr',
hoverOpacity: 0.5,
hoverColor: false,
backgroundColor: "#ffffff",
colors: couleurs,
borderColor: "#000000",
selectedColor: "#EC0000",
enableZoom: true,
showTooltip: true,
onRegionClick: function(element, code, region)
{
$(location).attr('href',"Fiche_departement.html?departement="+code);
}
});
});
</script>
</head>
<body>
<div id="francemap" style="width: 700px; height: 600px;"></div>
</body>
</html> |
Partager