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 @@