Skip to main content

MapDataLayersProps

Props for MapDataLayers.

This is an interface exported by @mapcairn/map, checked against version 0.2.0.

Signature​

import type { MapDataLayersProps } from "@mapcairn/map";

interface MapDataLayersProps

Properties​

formatters​

readonly formatters?: FormatterRegistry;

The formatters label templates may name. Defaults to the built-ins.

ignoreTaps​

readonly ignoreTaps?: boolean;

True while taps on the map mean something else, such as measuring.

layers​

readonly layers: DataLayers;

The layers state whose enabled layers are drawn on the map.

onFeatureTap​

readonly onFeatureTap?: (tap: MapFeatureTap) => void;

Called after a tap on a point has selected it, so the app can open its card.

See also​

Source: packages/map/src/layers/MapDataLayers.tsx:49