Bookmark QML Type

Represents a saved location on a Map. More...

Import Statement: import Esri.ArcGISRuntime 100.15
Since: Esri.ArcGISRuntime 100.0
Inherits:

Object

Properties

Signals

Methods

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.

TypeDefault Property
Viewpointviewpoint

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

name : string

The name of the Bookmark.


[default] viewpoint : Viewpoint

The Viewpoint of the Bookmark.


Signal Documentation

nameChanged()

Emitted when the name property of this Bookmark changes.

Note: The corresponding handler is onNameChanged.


viewpointChanged()

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.


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