diff --git a/src/components/src/map-container.tsx b/src/components/src/map-container.tsx index 87b1d24138..e40a6565a9 100644 --- a/src/components/src/map-container.tsx +++ b/src/components/src/map-container.tsx @@ -314,6 +314,7 @@ export interface MapContainerProps { deckRenderCallbacks?: { onDeckLoad?: () => void; onDeckRender?: (deckProps: Record) => Record | null; + onDeckAfterRender?: (deckProps: Record) => any; }; } @@ -838,6 +839,11 @@ export default function MapContainerFactory( } }} onWebGLInitialized={gl => this._onDeckInitialized(gl)} + onAfterRender={() => { + if (typeof deckRenderCallbacks?.onDeckAfterRender === 'function') { + deckRenderCallbacks.onDeckAfterRender(allDeckGlProps); + } + }} /> );