BookmarksViewModel
require(["esri/widgets/Bookmarks/BookmarksViewModel"], function(BookmarksViewModel) { /* code goes here */ });
Class:
esri/widgets/Bookmarks/BookmarksViewModel
Inheritance: BookmarksViewModel Accessor
Since: ArcGIS API for JavaScript 4.8
Provides the logic for the Bookmarks widget.
- See also:
Constructors
- Parameter:properties Objectoptional
See the properties for a list of all the properties that may be passed into the constructor.
Property Overview
Any properties can be set, retrieved or listened to. See the Working with Properties topic.
Name | Type | Summary | Class | |
---|---|---|---|---|
bookmarks | Collection<Bookmark> | A collection of Bookmarks. more details | more details | BookmarksViewModel |
declaredClass | String | The name of the class. more details | more details | Accessor |
goToOverride | GoToOverride | This function provides the ability to override either the MapView goTo() or SceneView goTo() methods. more details | more details | BookmarksViewModel |
state | String | The view model's state. more details | more details | BookmarksViewModel |
view | MapView | The view from which the widget will operate. more details | more details | BookmarksViewModel |
Property Details
- bookmarksCollection<Bookmark>
A collection of Bookmarks.
- Since: ArcGIS API for JavaScript 4.7
The name of the class. The declared class name is formatted as
esri.folder.className
.
- goToOverrideGoToOverride
This function provides the ability to override either the MapView goTo() or SceneView goTo() methods.
Example:// The following snippet uses the Search widget but can be applied to any // widgets that support the goToOverride property. search.goToOverride = function(view, goToParams) { goToParams.options.duration = updatedDuration; return view.goTo(goToParams.target, goToParams.options); };
- stateStringreadonly
The view model's state.
Possible Values: loading | disabled
- Default Value:disabled
- viewMapView
The view from which the widget will operate.
Method Overview
Name | Return Type | Summary | Class | |
---|---|---|---|---|
goTo() | Promise | Zoom to a specific bookmark. more details | more details | BookmarksViewModel |
Method Details
Loading...
API Reference search results
Name | Type | Module |
---|