Represents a saved location on a Map. More...
Import Statement: | import Esri.ArcGISRuntime 100.15 |
Since: | Esri.ArcGISRuntime 100.0 |
Inherits: |
Properties
Signals
Methods
- Bookmark clone()
Detailed Description
A Bookmark stores a Viewpoint and other information regarding a specific location on the Map.
Only ViewpointExtent viewpoints are supported in the Map. ViewpointCenter viewpoints are not supported.
This QML type supports the following default properties. A default property may be declared inside another declared object without being assigned explicitly to a property.
Example:
Create a bookmark of the Esri campus in Redlands, CA, and add it to the map's bookmarks.
var esriExtent = ArcGISRuntimeEnvironment.createObject("Envelope", { xMin: -13046614.76, yMin: 4036253.06, xMax: -13045754.84, yMax: 4036767.22, spatialReference: Factory.SpatialReference.createWebMercator() }); var esriViewpoint = ArcGISRuntimeEnvironment.createObject("ViewpointExtent", {extent: esriExtent}); var esriBookmark = ArcGISRuntimeEnvironment.createObject("Bookmark", {name: "Esri Headquarters", viewpoint: esriViewpoint}); map.bookmarks.append(esriBookmark);
See also BookmarkListModel.
Property Documentation
[default] viewpoint : Viewpoint |
The Viewpoint of the Bookmark.
Signal Documentation
Emitted when the name property of this Bookmark changes.
Note: The corresponding handler is onNameChanged
.
Emitted when the viewpoint property of this Bookmark changes.
Note: The corresponding handler is onViewpointChanged
.
Method Documentation
Bookmark clone() |
Clones this Bookmark to a new instance.