Change mouse scroll sleep feature

This commit is contained in:
leosw
2019-08-12 11:06:28 +02:00
parent 11c98ffd90
commit 5c3fb9384f
9 changed files with 245 additions and 68 deletions

View File

@@ -5,8 +5,6 @@
<title>Carte</title>
<link rel="stylesheet" href="leaflet/leaflet.css" />
<script src="leaflet/leaflet.js"></script>
<link rel="stylesheet" href="leaflet-wheelscroll/L.Control.MouseScroll.css" />
<script src="leaflet-wheelscroll/L.Control.MouseScroll.js"></script>
<link rel="stylesheet" href="leaflet-fullscreen/Control.FullScreen.css" />
<script src="leaflet-fullscreen/Control.FullScreen.js"></script>
<script src="leaflet-elevation/d3.v3.min.js" charset="utf-8"></script>
@@ -17,6 +15,7 @@
<link rel="stylesheet" href="leaflet-photo/Leaflet.Photo.css" />
<script src="leaflet-photo/Leaflet.Photo.js"></script>
<script src="leaflet-photo/reqwest.min.js"></script>
<script src="leaflet-sleep/Leaflet.Sleep.js"></script>
<script src="leaflet-gpx/gpx.js"></script>
<style media="screen" type="text/css">
* { margin: 0; padding: 0; }
@@ -61,15 +60,14 @@ var map = L.map('map', {
<?php if (!$_GET['scrollwheel']) echo "scrollWheelZoom: false,"; ?>
fullscreenControl: true, // Fullscreen button
attributionControl: false,
sleepNote: false,
sleepOpacity: .7,
fullscreenControlOptions: {
position: 'topleft'
}}).setView([47, 2], 6); // Hole france
var attributionControl = map.addControl(new L.control.attribution({position: 'topright'}));
// Mouse Scroll API
map.addControl(new L.Control.MouseScroll());
// Base layers
var baseLayers = {
"OSM France": osmfr,