Types
import type { BookmarkOptions, BookmarksCapabilities } from "@arcgis/core/widgets/Bookmarks/types.js";

Type definitions

BookmarkOptions

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Specifies how bookmarks will be created or modified.

takeScreenshot

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates whether a screenshot is taken when a new bookmark is created. The screenshot will be set as the Bookmark.thumbnail in the newly created bookmark. Default is true.

captureViewpoint

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates whether the viewpoint of the current view will become the Bookmark.viewpoint of a newly created or modified bookmark. Default is true.

captureRotation

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates whether the rotation of the current view will be saved in the Bookmark.viewpoint of a newly created or modified bookmark. Default is true.

captureScale

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates whether the scale of the current view will be saved in the Bookmark.viewpoint of a newly created or modified bookmark. Default is true.

screenshotSettings

Property
Type
Partial<UserSettings> | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

An object that specifies the settings of the screenshot that will be used to create the bookmark's Bookmark.thumbnail. The default screenshot size is 128px x 128px.

captureTimeExtent

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates whether the time extent of the current view will be saved in the Bookmark.timeExtent of a newly created or modified bookmark. Default is true.

BookmarksCapabilities

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Specifies the abilities for the Bookmarks widget.

time

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates whether the time capability is enabled in the Bookmarks widget. Default is true. When false, the timeExtent of a bookmark will not be visible or editable. Any newly created bookmarks will not capture the time extent.