Browse Source

Update leaflet-custom.js

Thomas Kandler 5 years ago
parent
commit
0107138ab4
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      leaflet-custom.js

+ 1
- 0
leaflet-custom.js View File

@@ -12,6 +12,7 @@ randCityArray = randCity.split(',');
12 12
 	osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors - Tiles \u00a9 HOT',
13 13
 	osm = L.tileLayer(osmUrl, {maxZoom: 18, attribution: osmAttrib});
14 14
 	var map = L.map('map').setView([randCityArray[1], randCityArray[2]], 12).addLayer(osm);
15
+	map.scrollWheelZoom.disable(); // scrollwheel-zoom is a serious nag when navigating the site
15 16
 
16 17
 	L.marker([randCityArray[1], randCityArray[2]])
17 18
 		.addTo(map)