Disable scratch map layer by default

This commit is contained in:
Eugene Burmakin 2024-11-01 13:43:21 +01:00
parent ef7b4c1fba
commit 1c62ef61b1
2 changed files with 1 additions and 6 deletions

View file

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

View file

@ -51,11 +51,6 @@
<div data-maps-target="container" class="h-[25rem] w-full min-h-screen">
<div id="fog" class="fog"></div>
</div>
<button
data-action="click->maps#toggleScratchLayer"
class="btn btn-primary mt-4">
Toggle Visited Countries
</button>
</div>
</div>
</div>