fix: rerender map on window change to refresh deckgl click handlers

This commit is contained in:
ccmdi 2025-11-21 13:43:10 -05:00
parent c778b0b9c7
commit ee7c1788b2
No known key found for this signature in database
2 changed files with 10 additions and 0 deletions

View file

@ -533,6 +533,7 @@ export function createMapRenderer(config: MapRendererOptions): Deck<MapViewType[
touchRotate: false,
keyboard: false,
dragRotate: false,
dragPan: true,
},
views: [new MapViewType({
repeat: true,

View file

@ -51,6 +51,15 @@ export class MapBasesView extends BasesView {
this.refresh();
})
);
this.register(
this.containerEl.onWindowMigrated(() => {
if (this.deck) {
this.destroyMap();
this.renderMap();
}
})
);
}
refresh(): void {