endStackMinHeightForZoom
The height the end stack needs to show the zoom group under the main group: four main controls (Map options, Measure, Locate me and Settings), two zoom controls, the gap between the groups and eight hairlines (the dividers between neighbours and the groups' borders), plus the compass and its gap while it shows, and one more control and hairline while the Directions or Draw shapes button shows. Below this, and only when the user has not chosen to show zoom buttons, the zoom group yields.
This is a function exported by @mapcairn/map, checked against version 0.2.0.
Signature
import { endStackMinHeightForZoom } from "@mapcairn/map";
function endStackMinHeightForZoom(compassShown: boolean, directionsShown?: boolean, drawShown?: boolean): number;
Parameters
compassShown(boolean)directionsShown?(boolean)drawShown?(boolean)
Returns
number
Remarks
The stack's own padding is not counted. It lives in its own file, with no styles, so that the browser tests can read it too.
Source: packages/map/src/chrome/EndStack/endStackHeight.ts:22