Skip to main content

useIdentifyFeedback

Whether to show the "Looking up what is here" line: true once identifying (see DataLayers.identifying) has been true for IDENTIFY_FEEDBACK_MS, and false again the moment it ends. The line is for the eye only. The lookup's result is said once, when it arrives, so nothing is announced while waiting: a message at the delay would be coalesced with the result.

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

Signature​

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

function useIdentifyFeedback(identifying: boolean): boolean;

Parameters​

  • identifying (boolean)

Returns​

boolean

Source: packages/map/src/layers/identifyFeedback.ts:19