Changeset - 00fc35492b0c
[Not reviewed]
0 1 0
Tobias Schulmann - 6 years ago 2018-06-30 00:02:14
tobias.schulmann@googlemail.com
Disabled mousewheel scroll on map
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templates/flatpages/homepage.html
Show inline comments
...
 
@@ -62,7 +62,10 @@ crossorigin=""></script>
 

	
 
{% block extra_body %}
 
<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', {
 
    attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
 
  }).addTo(map);
0 comments (0 inline, 0 general)