BookmarksViewController Class

  • BookmarksViewController
  • class Esri::ArcGISRuntime::Toolkit::BookmarksViewController

    In MVC architecture, this is the controller for the corresponding Bookmark view. This class handles the management of the BookmarkListItem objects, and displays the current bookmark. More...

    Header: #include <BookmarksViewController>
    Inherits: QObject

    Properties

    Public Functions

    BookmarksViewController(QObject *parent = nullptr)
    virtual ~BookmarksViewController() override
    Esri::ArcGISRuntime::Toolkit::GenericListModel *bookmarks() const
    QObject *geoView() const
    void setGeoView(QObject *geoView)
    void zoomToBookmarkExtent(Esri::ArcGISRuntime::Toolkit::BookmarkListItem *bookmark)

    Signals

    Detailed Description

    Property Documentation

    geoView : QObject*

    This property holds the geoView the controller is utilizing for interactions.

    Access functions:

    QObject *geoView() const
    void setGeoView(QObject *geoView)

    Notifier signal:

    See also Esri::ArcGISRuntime::Toolkit::BookmarksViewController::geoView.

    Member Function Documentation

    [invokable] BookmarksViewController::BookmarksViewController(QObject *parent = nullptr)

    Constructor.

    • parent owning parent object.

    Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

    [override virtual] BookmarksViewController::~BookmarksViewController()

    Destructor

    Esri::ArcGISRuntime::Toolkit::GenericListModel *BookmarksViewController::bookmarks() const

    Returns the known list of available bookmarks which can be textually displayed.

    Internally, this is a GenericListModel with an elementType of Bookmark.

    Note: Getter function for property bookmarks.

    QObject *BookmarksViewController::geoView() const

    Returns the GeoView as a QObject.

    Note: Getter function for property geoView.

    See also setGeoView().

    [signal] void BookmarksViewController::geoViewChanged()

    Emitted when the geoView has changed.

    Note: Notifier signal for property geoView.

    void BookmarksViewController::setGeoView(QObject *geoView)

    Set the GeoView object this Controller uses.

    Internally this is cast to a MapView or SceneView using qobject_cast, which is why the paremeter is of form QObject and not GeoView.

    • geoView Object which must inherit from GeoView* and QObject*.

    Note: Setter function for property geoView.

    See also geoView().

    [invokable] void BookmarksViewController::zoomToBookmarkExtent(Esri::ArcGISRuntime::Toolkit::BookmarkListItem *bookmark)

    Updates the GeoView camera to point to the current bookmark's location on the map.

    Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

    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