Skip to content

spatial-monorepo


spatial-monorepo / core/src / ExportOptions

Interface: ExportOptions

Defined in: packages/core/src/export/mapExport.ts:31

Properties

filename?

optional filename?: string

Defined in: packages/core/src/export/mapExport.ts:32


height?

optional height?: number

Defined in: packages/core/src/export/mapExport.ts:34


pixelRatio?

optional pixelRatio?: 4 | 2 | 1

Defined in: packages/core/src/export/mapExport.ts:45

Pixel ratio for high-DPI export. 1=72dpi, 2=144dpi, 4=288dpi. Default: 1.

This is a post-hoc upscale of the already-rendered canvas bitmap (drawn into a larger offscreen canvas), not a re-render at higher device pixel density — it will not reveal any additional map detail beyond what was rasterized at the map's current on-screen size. For genuinely higher pixel density, size the SpatialMap container larger (or increase window.devicePixelRatio context) before capturing.


width?

optional width?: number

Defined in: packages/core/src/export/mapExport.ts:33

Released under commercial licensing.