Disabled mousewheel scroll on map
This commit is contained in:
		
							parent
							
								
									37a4c59a24
								
							
						
					
					
						commit
						00fc35492b
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -62,7 +62,10 @@ crossorigin=""></script>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% block extra_body %}
 | 
					{% block extra_body %}
 | 
				
			||||||
<script>
 | 
					<script>
 | 
				
			||||||
  var map = L.map('map').setView([-43.5235, 172.5839], 18);
 | 
					  var map = L.map('map',
 | 
				
			||||||
 | 
					  {
 | 
				
			||||||
 | 
					    scrollWheelZoom: false
 | 
				
			||||||
 | 
					  }).setView([-43.5235, 172.5839], 18);
 | 
				
			||||||
  L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
 | 
					  L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
 | 
				
			||||||
    attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
 | 
					    attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
 | 
				
			||||||
  }).addTo(map);
 | 
					  }).addTo(map);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue