Skip to main content

SettingsSection

The settings: theme, units, map shape (flat or globe), language (only when the host offers more than one; see LanguageField) and zoom buttons, a note when changes will not be remembered, and a short privacy statement (the host's, or the catalogue's settings.privacy.default) with a link to the policy.

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

Signature​

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

function SettingsSection(input: SettingsSectionProps): JSX.Element;

Parameters​

  • { headingLevel, privacyHref, privacyNote, headingRef, }
  • input (SettingsSectionProps)

Returns​

JSX.Element

Remarks​

The zoom switch shows the stored choice, or the device default (on with a mouse, off on touch) while nothing is stored. Toggling it stores an explicit boolean, so a person who turns it on keeps it on everywhere.

See also​

Source: packages/map/src/panels/SettingsSection/SettingsSection.tsx:95