ui-state
Last updated
Was this helpful?
Last updated
Was this helpful?
Examples
Add a notification to be displayed. Existing notification is going to be updated in case of matching ids.
Parameters
Delete cached export image
Parameters
Default initial exportData
settings
Properties
Default image export config
Properties
A list of map control visibility and whether is it active.
Properties
Hide side panel header dropdown, activated by clicking the share link on top of the side panel
Parameters
Default initial uiState
Properties
Handles load file error and set fileLoading property to false
Parameters
state
error.error
Fired when file loading begin
Parameters
Toggle active map control panel
Parameters
Remove a notification
Parameters
Set data format for exporting data
Parameters
Whether to including data in map config, toggle between true
or false
Parameters
Whether to export filtered data, true
or false
Parameters
Set exportImage.setExportImageDataUri
to a image dataUri
Parameters
Set exportImage.legend
to true
or false
Parameters
$1.payload
Set selected dataset for export
Parameters
Hide and show side panel header dropdown, activated by clicking the share link on top of the side panel
Parameters
Set exportImage.exporting
to true
Parameters
Toggle active map control panel
Parameters
action.payload.panelId
action.payload.index
(optional, default 0
)
Show and hide modal dialog
Parameters
Toggle active side panel
Parameters
Handles toggle map split and reset all map control index to 0
Parameters
state
whether to export a mapbox access to HTML single page
Parameters
Updaters for uiState
reducer. Can be used in your root reducer to directly modify kepler.gl's state. Read more about
Action:
state
uiState
action
action.payload
Returns nextState
Action:
state
uiState
Returns nextState
Type:
selectedDataset
Default: ''
,
dataType
Default: 'csv'
,
filtered
Default: true
,
config
deprecated
data
used in modal config export. Default: false
Type:
ratio
Default: 'SCREEN'
,
resolution
Default: 'ONE_X'
,
legend
Default: false
,
imageDataUri
Default: ''
,
exporting
Default: false
error
Default: false
Type:
visibleLayers
Default: {show: true, active: false}
mapLegend
Default: {show: true, active: false}
toggle3d
Default: {show: true}
splitMap
Default: {show: true}
Action:
state
uiState
Returns nextState
Type:
readOnly
Default: false
activeSidePanel
Default: 'layer'
currentModal
( | null) Default: 'addData'
datasetKeyToRemove
( | null) Default: null
visibleDropdown
( | null) Default: null
exportImage
Default:
exportData
Default:
mapControls
Default:
activeMapIndex
defines which map the user clicked on. Default: 0
Action:
error
Returns nextState
Action:
state
uiState
Returns nextState
Action:
state
uiState
action
action.payload
dataset id
Returns nextState
Action:
state
uiState
action
action.payload
id of the notification to be removed
Returns nextState
Action:
state
uiState
action
action.payload
one of 'text/csv'
Returns nextState
Action:
state
uiState
Returns nextState
Action:
state
uiState
action
action.payload
Returns nextState
Action:
state
uiState
action
action.payload
export image data uri
Returns nextState
Action:
state
uiState
$1
Returns nextState
Action:
state
uiState
action
action.payload
dataset id
Returns nextState
Action:
state
uiState
action
action.payload
id of the dropdown
Returns nextState
Action:
state
uiState
Returns nextState
Action:
state
uiState
action
action
action.payload
map control panel id, one of the keys of:
Returns nextState
Action:
state
uiState
action
action.payload
( | null) id of modal to be shown, null to hide modals. One of:-
Returns nextState
Action:
state
uiState
action
action.payload
( | null) id of side panel to be shown, one of layer
, filter
, interaction
, map
. close side panel if null
Returns nextState
Action:
Returns nextState
Type:
exportMapboxAccessToken
Default: null, this is used when we provide a default mapbox token for users to take advantage of
userMapboxToken
Default: '', mapbox token provided by user through input field
Action:
state
uiState
action
action.payload
Returns nextState