BasemapGallery Class

  • Esri.ArcGISRuntime.Toolkit
  • BasemapGallery
  • class Esri::ArcGISRuntime::Toolkit::BasemapGallery

    The user interface for the BasemapGallery. The BasemapGallery displays a collection of items representing basemaps from either ArcGIS Online, a user-defined portal, or an array of Basemaps. When the user selects a basemap from the BasemapGallery, the basemap rendered in the current geoModel is removed from the given map/scene and replaced with the basemap selected in the gallery. More...

    Header: #include <BasemapGallery>
    Since: Esri.ArcGISRuntime 100.13

    Public Functions

    BasemapGallery(QWidget *parent = nullptr)
    BasemapGallery(Esri::ArcGISRuntime::GeoModel *geomodel, QWidget *parent = nullptr)
    ~BasemapGallery()
    Esri::ArcGISRuntime::GeoModel *geoModel()
    void setGeoModel(Esri::ArcGISRuntime::GeoModel *geomodel)

    Detailed Description

    Note: By default, the BasemapGallery will attempt to fetch the set of developer basemaps, which require an access token to access.

    Member Function Documentation

    [explicit invokable] BasemapGallery::BasemapGallery(QWidget *parent = nullptr)

    Default constructor.

    • parent Parent widget.

    View maintains its associated controller, sets up the view itself and its model.

    Note: If this constructor is used, a GeoModel must be set separately using setGeoModel.

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

    [explicit invokable] BasemapGallery::BasemapGallery(Esri::ArcGISRuntime::GeoModel *geomodel, QWidget *parent = nullptr)

    Constructor that takes a GeoModel.

    • geomodel GeoModel.
    • parent Parent widget.

    The provided GeoModel's basemap will be set as the BasemapGallery's currentBasemap.

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

    [noexcept] BasemapGallery::~BasemapGallery()

    Destructor.

    Esri::ArcGISRuntime::GeoModel *BasemapGallery::geoModel()

    Returns the current GeoModel used by the BasemapGallery.

    See also setGeoModel.

    void BasemapGallery::setGeoModel(Esri::ArcGISRuntime::GeoModel *geomodel)

    Sets the geomodel used by the controller.

    Setting this will reset the active basemap in the gallery. When a new basemap item is selected from the gallery, the GeoModel will be updated with the associated basemap.

    Note: If geomodel is passed as nullptr, the current geomodel is unset.

    See also geoModel().

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.