Skip to content

Commit

Permalink
Force map reload upon reuse (#2160)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress authored Apr 13, 2023
1 parent 0144ea5 commit 1fb860e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mapbox/mapbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,9 @@ export default class Mapbox {
map.once('styledata', () => map.fire('load'));
}

// Force redraw
map.triggerRepaint();
// Force reload
// @ts-ignore
map._update();
return that;
}

Expand Down

0 comments on commit 1fb860e

Please sign in to comment.