@sqlrooms/kepler / CreateKeplerSliceOptions
Type Alias: CreateKeplerSliceOptions
CreateKeplerSliceOptions =
object
Properties
config?
optionalconfig?:Partial<KeplerSliceConfig>
createInitialMapKeplerState?
optionalcreateInitialMapKeplerState?: (context) =>Partial<KeplerGlState>
Parameters
| Parameter | Type |
|---|---|
context | CreateInitialMapKeplerStateContext |
Returns
Partial<KeplerGlState>
basicKeplerProps?
optionalbasicKeplerProps?:Partial<KeplerGLBasicProps>
keplerTheme?
optionalkeplerTheme?:DefaultTheme
Theme passed to Kepler's ThemeProvider. Use createKeplerTheme() to merge app-level overrides into the default theme.
modalPortalTarget?
optionalmodalPortalTarget?:KeplerModalPortalTarget
Where the Kepler modal (Add Map Style, Export, etc.) should be portaled.
- 'body': portals to document.body (escapes stacking contexts)
- 'container': portals inside the kepler map container element
Default
'container'actionLogging?
optionalactionLogging?:boolean|ReduxLoggerOptions
middlewares?
optionalmiddlewares?:Middleware[]
applicationConfig?
optionalapplicationConfig?:KeplerApplicationConfig
tableSelection?
optionaltableSelection?:KeplerTableSelectionOptions
Controls which DuckDB tables appear in Kepler's Add Layer menu and how those tables are represented in saved Kepler dataset ids.
onAction?
optionalonAction?: (mapId,action) =>void
Called when a kepler action is dispatched
Parameters
| Parameter | Type | Description |
|---|---|---|
mapId | string | The map id |
action | KeplerAction | The action |
Returns
void