Skip To Content ArcGIS for Developers Sign In Dashboard

Bookmark QML Type

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

Import Statement: import Esri.ArcGISRuntime 100.6
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: 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.


viewpointChanged()

Emitted when the viewpoint property of this Bookmark changes.


Method Documentation

Bookmark clone()

Clones this Bookmark to a new instance.



Feedback on this topic?