vis-state
Table of Contents
visStateUpdaters
Updaters for visState
reducer. Can be used in your root reducer to directly modify kepler.gl's state. Read more about Using updaters
Examples
addFilterUpdater
Add a new filter
Action:
addFilter
Parameters
state
ObjectvisState
Returns Object nextState
addLayerUpdater
Add a new layer
Action:
addLayer
Parameters
state
ObjectvisState
Returns Object nextState
applyCPUFilterUpdater
When select dataset for export, apply cpu filter to selected dataset
Action:
applyCPUFilter
Parameters
state
ObjectvisState
Returns Object nextState
enlargeFilterUpdater
Show larger time filter at bottom for time playback (apply to time filter only)
Action:
enlargeFilter
Parameters
state
ObjectvisState
Returns Object nextState
INITIAL_VIS_STATE
Default initial visState
Type: Object
Properties
layers
ArraylayerData
ArraylayerToBeMerged
ArraylayerOrder
Arrayfilters
ArrayfilterToBeMerged
Arraydatasets
ArrayeditingDataset
stringinteractionConfig
ObjectinteractionToBeMerged
ObjectlayerBlending
stringhoverInfo
Objectclicked
ObjectmousePos
ObjectsplitMaps
Array a list of objects of layer availabilities and visibilities for each maplayerClasses
ObjectanimationConfig
Objecteditor
Object
interactionConfigChangeUpdater
Update interactionConfig
Action:
interactionConfigChange
Parameters
state
ObjectvisState
Returns Object nextState
layerClickUpdater
Trigger layer click event with clicked object
Action:
onLayerClick
Parameters
state
ObjectvisState
Returns Object nextState
layerHoverUpdater
Trigger layer hover event with hovered object
Action:
onLayerHover
Parameters
state
ObjectvisState
Returns Object nextState
layerTypeChangeUpdater
Update layer type. Previews layer config will be copied if applicable.
Action:
layerTypeChange
Parameters
state
ObjectvisState
Returns Object nextState
layerVisConfigChangeUpdater
Update layer visConfig
Action:
layerVisConfigChange
Parameters
state
ObjectvisState
Returns Object nextState
layerVisualChannelChangeUpdater
Update layer visual channel
Action:
layerVisualChannelConfigChange
Parameters
state
ObjectvisState
Returns Object nextState
loadFilesErrUpdater
Trigger loading file error
Action:
loadFilesErr
Parameters
Returns Object nextState
loadFilesUpdater
Trigger file loading dispatch addDataToMap
if succeed, or loadFilesErr
if failed
Action:
loadFiles
Parameters
state
ObjectvisState
Returns Object nextState
mapClickUpdater
Trigger map click event, unselect clicked object
Action:
onMapClick
Parameters
state
ObjectvisState
Returns Object nextState
receiveMapConfigUpdater
Propagate visState
reducer with a new configuration. Current config will be override.
Action:
receiveMapConfig
Parameters
state
ObjectvisState
Returns Object nextState
removeDatasetUpdater
Remove a dataset and all layers, filters, tooltip configs that based on it
Action:
removeDataset
Parameters
state
ObjectvisState
Returns Object nextState
removeFilterUpdater
Remove a filter
Action:
removeFilter
Parameters
state
ObjectvisState
Returns Object nextState
removeLayerUpdater
remove layer
Action:
removeLayer
Parameters
state
ObjectvisState
Returns Object nextState
reorderLayerUpdater
Reorder layer
Action:
reorderLayer
Parameters
state
ObjectvisState
Returns Object nextState
resetMapConfigUpdater
reset visState to initial State
Action:
resetMapConfig
Parameters
state
ObjectvisState
Returns Object nextState
setFilterPlotUpdater
Set the property of a filter plot
Action:
setFilterPlot
Parameters
state
ObjectvisState
Returns Object nextState
setFilterUpdater
Update filter property
Action:
setFilter
Parameters
state
ObjectvisState
datasetId
string used when updating a prop (dataId, name) that can be linked to multiple datasets
Returns Object nextState
setMapInfoUpdater
User input to update the info of the map
Action:
setMapInfo
Parameters
state
ObjectvisState
Returns Object nextState
showDatasetTableUpdater
Display dataset table in a modal
Action:
showDatasetTable
Parameters
state
ObjectvisState
Returns Object nextState
toggleFilterAnimationUpdater
Start and end filter animation
Action:
toggleFilterAnimation
Parameters
state
ObjectvisState
Returns Object nextState
toggleLayerForMapUpdater
Toggle visibility of a layer in a split map
Action:
toggleLayerForMap
Parameters
state
Object
Returns Object nextState
toggleSplitMapUpdater
Toggle visibility of a layer for a split map
Action:
toggleSplitMap
Parameters
state
ObjectvisState
Returns Object nextState
updateAnimationTimeUpdater
Reset animation config current time to a specified value
Action:
updateAnimationTime
Parameters
state
ObjectvisState
Returns Object nextState
updateFilterAnimationSpeedUpdater
Change filter animation speed
Action:
updateFilterAnimationSpeed
Parameters
state
ObjectvisState
Returns Object nextState
updateLayerAnimationSpeedUpdater
Update animation speed with the vertical speed slider
Action:
updateLayerAnimationSpeed
Parameters
state
ObjectvisState
Returns Object nextState
updateLayerBlendingUpdater
update layer blending mode
Action:
updateLayerBlending
Parameters
state
ObjectvisState
Returns Object nextState
updateVisDataUpdater
Add new dataset to visState
, with option to load a map config along with the datasets
Action:
updateVisData
Parameters
state
ObjectvisState
action
Object action
Returns Object nextState
Last updated