AntDX316 commited on
Commit
a143487
·
1 Parent(s): 2f784f7
Files changed (1) hide show
  1. script.js +9 -1
script.js CHANGED
@@ -57,7 +57,15 @@ document.addEventListener('DOMContentLoaded', function() {
57
 
58
  function initializeMap() {
59
  // Create map centered on a fictional battle area
60
- map = L.map('map').setView([40.7, -74.0], 13);
 
 
 
 
 
 
 
 
61
 
62
  // Add the base map tiles (OpenStreetMap)
63
  L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
 
57
 
58
  function initializeMap() {
59
  // Create map centered on a fictional battle area
60
+ map = L.map('map', {
61
+ dragging: false, // Disable map dragging
62
+ zoomControl: false, // Disable zoom control buttons
63
+ doubleClickZoom: false, // Disable double click zoom
64
+ scrollWheelZoom: false, // Disable scroll wheel zoom
65
+ touchZoom: false, // Disable touch zoom
66
+ boxZoom: false, // Disable box zoom
67
+ keyboard: false // Disable keyboard navigation
68
+ }).setView([40.7, -74.0], 13);
69
 
70
  // Add the base map tiles (OpenStreetMap)
71
  L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {