From 1c62ef61b1e4b2bed62ba43305d0a3f35f14c82c Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Fri, 1 Nov 2024 13:43:21 +0100 Subject: [PATCH] Disable scratch map layer by default --- app/javascript/controllers/maps_controller.js | 2 +- app/views/map/index.html.erb | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app/javascript/controllers/maps_controller.js b/app/javascript/controllers/maps_controller.js index ec37f689..a09e1a02 100644 --- a/app/javascript/controllers/maps_controller.js +++ b/app/javascript/controllers/maps_controller.js @@ -152,7 +152,7 @@ export default class extends Controller { color: '#FFA500', weight: 1 } - }).addTo(this.map) + }) const response = await fetch('https://raw.githubusercontent.com/datasets/geo-countries/master/data/countries.geojson') const worldData = await response.json() diff --git a/app/views/map/index.html.erb b/app/views/map/index.html.erb index 0e36e4a4..7b3ed8ef 100644 --- a/app/views/map/index.html.erb +++ b/app/views/map/index.html.erb @@ -51,11 +51,6 @@
-