Skip to main content

FreeCentre

What useFreeCentre returns.

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

Signature​

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

interface FreeCentre

Properties​

pixel​

readonly pixel: PixelPoint | null;

The middle of the part of the map the sheet or side panel leaves free, in pixels, or the middle of the whole map before the chrome has measured. Null before the map has mounted.

position​

readonly position: () => LatLng | null;

The place under FreeCentre, read when asked, or null before the map has mounted.

See also​

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