Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
breunigs committed Jul 13, 2024
1 parent ab0f150 commit 41c4c17
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions assets/js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,12 +467,9 @@ function showMapImages() {
}

let highlightsAppliedToStyle = ""
let highlightsTimeout = null

function styleChangedHandler() {
// Applying the modifications on a partially loaded style might not work. We
// don't always get an event with the style fully loaded, so retry this way.
if (highlightsTimeout) clearTimeout(highlightsTimeout)
if (!map.isStyleLoaded()) setTimeout(styleChangedHandler, 50)

const currStyleName = map.getStyle().name
Expand Down

0 comments on commit 41c4c17

Please sign in to comment.