Skip to main content

ShapesSection

The shapes the person has drawn: a list where each row selects a shape (so it can be edited with the keyboard from the draw tool), buttons to delete the selected shape or all of them, an import from a GeoJSON, CSV or WKT file (when the host supplies a file opener), and the export buttons. Shapes are saved to a file or into a link only when a button is pressed, a file is read only on this device, and the note says so. The map fits to what an import added.

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

Signature​

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

function ShapesSection(input: ShapesSectionProps): JSX.Element;

Parameters​

  • { draw, headingLevel, headingRef, }
  • input (ShapesSectionProps)

Returns​

JSX.Element

See also​

Source: packages/map/src/panels/ShapesSection/ShapesSection.tsx:100