carte : défilement désactivé

This commit is contained in:
Pascal Engélibert 2023-07-10 09:23:58 +02:00
parent 1c97cca283
commit 58d7b10a7f

View File

@ -2,6 +2,7 @@
<script type="text/javascript" src="/vendor/leaflet/leaflet.js"></script> <script type="text/javascript" src="/vendor/leaflet/leaflet.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var map = L.map('map').setView([46.725, 2.834], 6); var map = L.map('map').setView([46.725, 2.834], 6);
map.scrollWheelZoom.disable();
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 10, maxZoom: 10,
attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>' attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'