Skip to main content

MapOverlayLayer

The single layer every map overlay draws into: one SVG spanning the map host, above the engine and below the chrome. Place it inside MapView.

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

Signature​

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

function MapOverlayLayer(input: MapOverlayLayerProps): JSX.Element;

Parameters​

  • { children, testId }
  • input (MapOverlayLayerProps)

Returns​

JSX.Element

Remarks​

It is hidden from assistive technology and never takes pointer events. Overlays are pictures of state that the interface also gives in text (the pin's coordinates, the measured distance, the location accuracy).

See also​

Source: packages/map/src/host/overlays/MapOverlayLayer.tsx:22