UiController
Last updated
Was this helpful?
Last updated
Was this helpful?
The UI controller allows you to control various aspects of the Felt UI in your embedded map.
This includes enabling/disabling UI controls, managing on-map interactions, and controlling the visibility of UI components like the data table.
updateUiControls(
controls
: ):void
Updates the UI controls on the embedded map.
controls
The controls to update.
void
Control the on-map UI shown when interacting with features and elements.
If you add your own click, selection or hover handlers you may want to disable various parts of the Felt UI. This method allows you to control the visibility of various parts of the UI that might otherwise be shown when people click or hover on things.
This does not affect selection. That means that selectable features and elements will still be selected when clicked.
options
void
Shows a data table view for the specified layer, optionally sorted by a given attribute.
params
?
params.layerId
?
string
params.sorting
?
Promise
<void
>
hideLayerDataTable():
Promise
<void
>
Hides the data table.
Promise
<void
>
setOnMapInteractionsUi(options
: ): void
showLayerDataTable(params
?: { layerId
: string
; sorting
: ; }): Promise
<void
>
{ layerId
: string
; sorting
: ; }