spatial-monorepo / core/src / captureMapScreenshot
Function: captureMapScreenshot()
captureMapScreenshot(
map):Promise`<string>`
Defined in: packages/core/src/export/mapExport.ts:257
Issue #429 — forces a fresh WebGL paint via map.triggerRepaint() and reads the canvas synchronously inside the next 'render' event so the screenshot is never blank, regardless of the map's preserveDrawingBuffer setting (see getRenderedCanvas).
Parameters
map
Map$1
Returns
Promise`<string>`
