ui-state

Table of Contents

uiStateUpdaters

Updaters for uiState reducer. Can be used in your root reducer to directly modify kepler.gl's state. Read more about Using updatersarrow-up-right

Examples

addNotificationUpdater

Add a notification to be displayed. Existing notification is going to be updated in case of matching ids.

Parameters

Returns Objectarrow-up-right nextState

cleanupExportImage

Delete cached export image

Parameters

Returns Objectarrow-up-right nextState

DEFAULT_EXPORT_DATA

Default initial exportData settings

Type: Objectarrow-up-right

Properties

DEFAULT_EXPORT_IMAGE

Default image export config

Type: Objectarrow-up-right

Properties

DEFAULT_MAP_CONTROLS_FEATURES

A list of map control visibility and whether is it active.

Type: Objectarrow-up-right

Properties

hideExportDropdownUpdater

Hide side panel header dropdown, activated by clicking the share link on top of the side panel

Parameters

Returns Objectarrow-up-right nextState

INITIAL_UI_STATE

Default initial uiState

Type: Objectarrow-up-right

Properties

loadFilesErrUpdater

Handles load file error and set fileLoading property to false

Parameters

Returns Objectarrow-up-right nextState

loadFilesUpdater

Fired when file loading begin

Parameters

Returns Objectarrow-up-right nextState

openDeleteModalUpdater

Toggle active map control panel

Parameters

Returns Objectarrow-up-right nextState

removeNotificationUpdater

Remove a notification

Parameters

Returns Objectarrow-up-right nextState

setExportDataTypeUpdater

Set data format for exporting data

Parameters

Returns Objectarrow-up-right nextState

setExportDataUpdater

Whether to including data in map config, toggle between true or false

Parameters

Returns Objectarrow-up-right nextState

setExportFilteredUpdater

Whether to export filtered data, true or false

Parameters

Returns Objectarrow-up-right nextState

setExportImageDataUri

Set exportImage.setExportImageDataUri to a image dataUri

Parameters

Returns Objectarrow-up-right nextState

setExportImageSetting

Set exportImage.legend to true or false

Parameters

Returns Objectarrow-up-right nextState

setExportSelectedDatasetUpdater

Set selected dataset for export

Parameters

Returns Objectarrow-up-right nextState

showExportDropdownUpdater

Hide and show side panel header dropdown, activated by clicking the share link on top of the side panel

Parameters

Returns Objectarrow-up-right nextState

startExportingImage

Set exportImage.exporting to true

Parameters

Returns Objectarrow-up-right nextState

toggleMapControlUpdater

Toggle active map control panel

Parameters

Returns Objectarrow-up-right nextState

toggleModalUpdater

Show and hide modal dialog

Parameters

Returns Objectarrow-up-right nextState

toggleSidePanelUpdater

Toggle active side panel

Parameters

Returns Objectarrow-up-right nextState

toggleSplitMapUpdater

Handles toggle map split and reset all map control index to 0

Parameters

  • state

Returns Objectarrow-up-right nextState

DEFAULT_EXPORT_HTML

Type: Objectarrow-up-right

Properties

  • exportMapboxAccessToken stringarrow-up-right Default: null, this is used when we provide a default mapbox token for users to take advantage of

  • userMapboxToken stringarrow-up-right Default: '', mapbox token provided by user through input field

setUserMapboxAccessTokenUpdater

whether to export a mapbox access to HTML single page

Parameters

Returns Objectarrow-up-right nextState

Last updated

Was this helpful?