Reference · Markers on the globe
readPlaceGroupsfunction
Whether places that crowd are gathered into one ring with their count (the attribute place-groups): on unless the value is off.
Import it
import { readPlaceGroups } from "@johnmorrisdotca/chikyu-earth/markers";
Definition
function readPlaceGroups(value: string | null): boolean
Parameters
| Name | Type | Description |
|---|---|---|
value | string | null | The attribute's value, or null when it is not set. |
Returns
boolean
False for off, true for anything else.
Examples
import { readPlaceGroups } from "@johnmorrisdotca/chikyu-earth/markers";
console.log(readPlaceGroups(null), readPlaceGroups("off")); // true falsetrue falseWhat it prints (run when this page was built)