shouldShowZoomButtons
Decides whether to show the zoom buttons.
This is a function exported by @mapcairn/core, checked against version 0.2.0.
Signature
import { shouldShowZoomButtons } from "@mapcairn/core";
function shouldShowZoomButtons(input: {
setting: boolean | null;
finePointer: boolean;
availableHeight: number;
minHeightForZoom: number;
}): ZoomButtonVisibility;
Parameters
input({ setting: boolean | null; finePointer: boolean; availableHeight: number; minHeightForZoom: number; }): The fields, by name:setting: The user's setting. An explicittruealways shows them (the stack scrolls instead of hiding them) and an explicitfalsenever does.nulluses the device default: shown for a fine pointer unless there is less thanminHeightForZoomavailable.
Returns
ZoomButtonVisibility