ResetViewWidget
This widget resets the view state of a deck.gl viewport to its initial state. The user clicks the widget to return to the initial view.
Usage
import {Deck} from '@deck.gl/core';
import {ResetViewWidget} from '@deck.gl/widgets';
const deck = new Deck({
  widgets: [new ResetViewWidget()]
});
Types
ResetViewWidgetProps
The ResetViewWidget accepts the generic WidgetProps and:
label (string, optional)
- Default: 'Reset View'
Tooltip message displayed while hovering a mouse over the widget.
initialViewState (ViewState, optional)
- Default: deck.props.initialViewState
The initial view state to reset the view to.
Styles
Learn more about how to replace icons in the styling guide.
| Name | Type | Default | 
|---|---|---|
| --icon-reset-view | SVG Data Url | [Material Symbol Reset Focus][icon_reset_view] |