Skip to main content

ExportSection

Saves the map as it looks now, with its layers and credits, as a PNG file. The image is drawn in the browser from what the map has already loaded, so nothing is requested or sent anywhere. A plain button, so it works from the keyboard; the result is announced through the shared live region.

This is a function exported by @mapcairn/map, checked against version 0.2.0.

Signature​

import { ExportSection } from "@mapcairn/map";

function ExportSection(input: ExportSectionProps): JSX.Element;

Parameters​

  • { credits, drawing, headingLevel, headingRef, }
  • input (ExportSectionProps)

Returns​

JSX.Element

Remarks​

Every failure is logged and announced assertively.

See also​

Source: packages/map/src/panels/ExportSection/ExportSection.tsx:61