Skip to content

Commit

Permalink
only load on click
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperknot committed Mar 25, 2024
1 parent 442fb38 commit c5c555f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions website/assets/map_howto.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ function initMap() {
}

const mapDiv = document.getElementById('map-container')
// mapDiv.onclick = function () {
// initMap()
// }
mapDiv.onclick = function () {
initMap()
}

initMap()
// initMap()

function selectStyle(event, style) {
initMap()
toggleButtonSelection(event.target)

const styleUrl = 'https://tiles.openfreemap.org/styles/' + style
Expand Down

0 comments on commit c5c555f

Please sign in to comment.