Skip to content

Commit

Permalink
Fix the map marker bug entirely
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengliebe committed Jul 27, 2023
1 parent e287f2f commit 00e454c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions js/maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,9 @@ function ctfw_load_maps() {
// Trigger browser resize event to correct misplaced marker on Chrome
setTimeout(function () {
window.dispatchEvent(new Event('resize'));
console.log('resize')
}, 100);
setTimeout(function () {
window.dispatchEvent(new Event('resize'));
console.log('resize 2')
}, 1000); // and a second later just in case

// Store map object in data attribute so can manipulate the instance later
Expand Down

0 comments on commit 00e454c

Please sign in to comment.