Skip to main content

useFreeCentre

The target of "at the map centre" for a tool whose panel covers part of the map: the middle of what is left uncovered, so it is never under the sheet. Read it inside the map context and the chrome.

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

Signature​

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

function useFreeCentre(): FreeCentre;

Returns​

FreeCentre

See also​

Source: packages/map/src/tools/Directions/useFreeCentre.ts:27