mise à jour mapbox.js et suppression du zoom par scroll
Signed-off-by: iGor milhit <igor@milhit.ch>web-fediverse-moi v.0.1.9-0-ga38c9b3
parent
96d4add7c9
commit
a38c9b3dfc
|
@ -36,7 +36,7 @@ h1 {
|
||||||
/* ----------- map ------------- */
|
/* ----------- map ------------- */
|
||||||
|
|
||||||
#map {
|
#map {
|
||||||
height: 30em;
|
height: 25em;
|
||||||
margin-bottom: 2.5rem;
|
margin-bottom: 2.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
11
index.html
11
index.html
|
@ -11,8 +11,8 @@
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="css/style.css">
|
||||||
<link rel="icon" href="favicon.ico">
|
<link rel="icon" href="favicon.ico">
|
||||||
<link rel="stylesheet" href="css/font-awesome.css">
|
<link rel="stylesheet" href="css/font-awesome.css">
|
||||||
<script src='https://api.mapbox.com/mapbox.js/v2.2.2/mapbox.js'></script>
|
<script src='https://api.mapbox.com/mapbox.js/v2.4.0/mapbox.js'></script>
|
||||||
<link href='https://api.mapbox.com/mapbox.js/v2.2.2/mapbox.css' rel='stylesheet' />
|
<link href='https://api.mapbox.com/mapbox.js/v2.4.0/mapbox.css' rel='stylesheet' />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -65,7 +65,12 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
L.mapbox.accessToken = 'pk.eyJ1IjoiaWdvcm1pbGhpdCIsImEiOiI5ZjhhMjgyMGU4OGY5MTY3NDZkZDAxYmJiOTc4NmRkNiJ9.b28EB0Ak2LnAfrQQuWbrsg';
|
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>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue