Skip to content

Commit 1fb860e

Browse files
Force map reload upon reuse (#2160)
1 parent 0144ea5 commit 1fb860e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/mapbox/mapbox.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,9 @@ export default class Mapbox {
506506
map.once('styledata', () => map.fire('load'));
507507
}
508508

509-
// Force redraw
510-
map.triggerRepaint();
509+
// Force reload
510+
// @ts-ignore
511+
map._update();
511512
return that;
512513
}
513514

0 commit comments

Comments
 (0)