mise à jour mapbox.js et suppression du zoom par scroll

Signed-off-by: iGor milhit <igor@milhit.ch>
master v.0.1.9-0-ga38c9b3
iGor milhit 2016-05-02 15:08:36 +02:00
parent 96d4add7c9
commit a38c9b3dfc
2 changed files with 9 additions and 4 deletions

View File

@ -36,7 +36,7 @@ h1 {
/* ----------- map ------------- */
#map {
height: 30em;
height: 25em;
margin-bottom: 2.5rem;
}

View File

@ -11,8 +11,8 @@
<link rel="stylesheet" href="css/style.css">
<link rel="icon" href="favicon.ico">
<link rel="stylesheet" href="css/font-awesome.css">
<script src='https://api.mapbox.com/mapbox.js/v2.2.2/mapbox.js'></script>
<link href='https://api.mapbox.com/mapbox.js/v2.2.2/mapbox.css' rel='stylesheet' />
<script src='https://api.mapbox.com/mapbox.js/v2.4.0/mapbox.js'></script>
<link href='https://api.mapbox.com/mapbox.js/v2.4.0/mapbox.css' rel='stylesheet' />
</head>
<body>
@ -65,7 +65,12 @@
<script>
L.mapbox.accessToken = 'pk.eyJ1IjoiaWdvcm1pbGhpdCIsImEiOiI5ZjhhMjgyMGU4OGY5MTY3NDZkZDAxYmJiOTc4NmRkNiJ9.b28EB0Ak2LnAfrQQuWbrsg';
L.mapbox.map('map', 'igormilhit.np85616o', {zoomControl: false});
var map = L.mapbox.map('map', 'igormilhit.np85616o', {zoomControl: true}).setView([46.1999, 6.1563], 12);
// désactiver le zoom
map.scrollWheelZoom.disable();
</script>
</div>
</body>