gi-nx
gi-nx / getPng
tsfunction getPng(): Promise<string>;
Export the current map view as a PNG image.
Returns
Promise<string>
Promise resolving to a base64 PNG data URL
Example
typescriptconst pngDataUrl = await rpc.invoke("getPng", []);
// Create download link or display image