Skip to content

Commit

Permalink
fix: gray area open street map
Browse files Browse the repository at this point in the history
  • Loading branch information
NiclasNorin committed Apr 3, 2024
1 parent 6ad010c commit fc7835e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/js/openStreetMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ class OpenStreetMap {
this.initializeFeatures();
this.addKeyboardEventListeners();

setTimeout(() => {
this.map.invalidateSize();
}, 200);

if (expand) {
expand.addEventListener('click', () => {
setTimeout(() => {
Expand Down

0 comments on commit fc7835e

Please sign in to comment.