Skip to content

gi-nx


gi-nx / getPng

ts
function getPng(): Promise<string>;

Export the current map view as a PNG image.

Returns

Promise<string>

Promise resolving to a base64 PNG data URL

Example

typescript
const pngDataUrl = await rpc.invoke("getPng", []);
// Create download link or display image