Time Slider

1
import "@arcgis/map-components/components/arcgis-time-slider";

The Time Slider component simplifies visualization of temporal data in your application.

Demo

Properties

PropertyAttributeType
auto-destroy-disabled
boolean
disabled
boolean
Array<Date>
icon
string
label
string
layout
"auto" | "compact" | "wide"
loop
boolean
mode
"cumulative-from-end" | "cumulative-from-start" | "instant" | "time-window"
play-rate
number
position
"bottom-leading" | "bottom-left" | "bottom-right" | "bottom-trailing" | "manual" | "top-leading" | "top-left" | "top-right" | "top-trailing"
reference-element
ArcgisLinkChart | ArcgisMap | ArcgisScene | string
state
readonly
state
"disabled" | "playing" | "ready"
Array<TickConfig>
time-visible
boolean
time-zone
string

actions

Property
actions: Collection<Action>

Defines actions that will appear in a menu when the user clicks the ellipsis button timeSlider-actions-menu in the widget.

Read more...

autoDestroyDisabled

Property
autoDestroyDisabled: boolean

If true, the component will not be destroyed automatically when it is disconnected from the document. This is useful when you want to move the component to a different place on the page, or temporarily hide it. If this is set, make sure to call the `destroy` method when you are done to prevent memory leaks.

Attribute
auto-destroy-disabled
Default value
false

disabled

Property
disabled: boolean

When true, sets the widget to a disabled state so the user cannot interact with it.

Read more...

Attribute
disabled
Default value
false

effectiveStops

readonlyProperty
effectiveStops: Array<Date>

Lists the specific locations on the timeline where handle(s) will snap to when manipulated.

Read more...

Default value
null

fullTimeExtent

Property
fullTimeExtent: TimeExtent

The temporal extent of the entire slider.

Read more...

icon

Property
icon: string

Icon which represents the component. Typically used when the component is controlled by another component (e.g. by the Expand component). Search Calcite Icons for possible values.

Attribute
icon
Default value
"clock"

label

Property
label: string

The component's default label.

Attribute
label

layout

Property
layout: "auto" | "compact" | "wide"

Determines the layout used by the TimeSlider widget.

Read more...

Attribute
layout
Default value
"auto"

loop

Property
loop: boolean

When true, the time slider will play its animation in a loop.

Read more...

Attribute
loop
Default value
false

mode

Property
mode: "cumulative-from-end" | "cumulative-from-start" | "instant" | "time-window"

The time slider mode.

Read more...

Attribute
mode
Default value
"time-window"

playRate

Property
playRate: number

The time (in milliseconds) between animation steps.

Read more...

Attribute
play-rate
Default value
1000

position

Property
position: "bottom-leading" | "bottom-left" | "bottom-right" | "bottom-trailing" | "manual" | "top-leading" | "top-left" | "top-right" | "top-trailing"
Attribute
position
Default value
"bottom-left"

referenceElement

Property
referenceElement: ArcgisLinkChart | ArcgisMap | ArcgisScene | string
Attribute
reference-element

state

readonly
Property
state: "disabled" | "playing" | "ready"

The view model's state.

Read more...

Attribute
state
Default value
"disabled"

stops

Property

Defines specific locations on the time slider where thumbs will snap to when manipulated.

Read more...

Default value
{ count : 10 }

tickConfigs

Property
tickConfigs: Array<TickConfig>

When set, overrides the default TimeSlider ticks labelling system.

Read more...

Default value
null

timeExtent

Property
timeExtent: TimeExtent

The current time extent of the time slider.

Read more...

Default value
null

timeVisible

Property
timeVisible: boolean

Shows/hides time in the display.

Read more...

Attribute
time-visible
Default value
false

timeZone

Property
timeZone: string

Dates and times displayed in the widget will be displayed in this time zone.

Read more...

Attribute
time-zone

Methods

MethodSignature
applyTimeSliderSettings(settings: Pick<__esri.TimeSliderProperties, "fullTimeExtent" | "loop" | "stops">): Promise<void>
componentOnReady(): Promise<void>
destroy(): Promise<void>
next(): Promise<void>
play(): Promise<void>
previous(): Promise<void>
stop(): Promise<void>
updateWebDocument(webmap: __esri.WebMap): Promise<void>

applyTimeSliderSettings

Method
applyTimeSliderSettings(settings: Pick<__esri.TimeSliderProperties, "fullTimeExtent" | "loop" | "stops">): Promise<void>
Parameters
ParameterTypeOptional?
settings
{ loop?: boolean | undefined; fullTimeExtent?: nullish | TimeExtentProperties; stops?: nullish | Array<Date>; }
Returns
Promise<void>

componentOnReady

Method
componentOnReady(): Promise<void>

Create a promise that resolves once component is fully loaded.

Returns
Promise<void>

destroy

Method
destroy(): Promise<void>

Permanently destroy the component

Returns
Promise<void>

next

Method
next(): Promise<void>
Returns
Promise<void>

play

Method
play(): Promise<void>
Returns
Promise<void>

previous

Method
previous(): Promise<void>
Returns
Promise<void>

stop

Method
stop(): Promise<void>
Returns
Promise<void>

updateWebDocument

Method
updateWebDocument(webmap: __esri.WebMap): Promise<void>
Parameters
ParameterTypeOptional?
webmap
Returns
Promise<void>

Events

EventType
{ name: "timeExtent" | "state" | "effectiveStops" | "fullTimeExtent"; }
undefined
TimeSliderTriggerActionEvent

arcgisPropertyChange

Event
arcgisPropertyChange: { name: "timeExtent" | "state" | "effectiveStops" | "fullTimeExtent"; }

Fired when the value of a property is changed. Use this to listen to changes to properties.

arcgisReady

Event
arcgisReady: undefined

arcgisTriggerAction

Event
arcgisTriggerAction: TimeSliderTriggerActionEvent

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close