Function: useGeoVisMapMode()
useGeoVisMapMode():
GeoVisMapModeContextValue
Defined in: react/mapMode.ts:74
The map-mode state of the nearest <GeoVisProvider>: whether the map is
split, and what each side shows.
Returns
The context value; a single map when the spec does not opt in.
Example
const { mode } = useGeoVisMapMode();
if (mode === 'split') hideMyOwnLegend();