The user interface for the BasemapGallery. More...
| Import Statement | import Esri. |
| Since | Esri. |
- List of all members, including inherited members
- BasemapGallery is part of ArcGISQtToolkitUiQmlViews group.
Properties
- allowTooltips : bool
- currentBasemap : Basemap
- gallery : GenericListModel
- geoModel : GeoModel
- portal : Portal
- style : ViewStyle
Methods
- void setGeoModelFromGeoView(GeoView view)
Detailed Description
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.

BasemapGallery { id: gallery controller: demo.controller anchors { right: parent.right top: parent.top margins: 10 } }
Note: By default, the BasemapGallery will attempt to fetch the set of developer basemaps, which require an access token to access.
Property Documentation
allow |
When this property is true, mouse-hover tooltips are enabled for gallery items.
Defaults to true.
current |
Currently applied basemap on the associated GeoModel. This may be a basemap which does not exist in the gallery.
gallery : Generic |
The list of basemaps currently visible in the gallery. Items added or removed from this list will update the gallery.
geo |
The GeoModel for this tool. Should be a Scene or a Map.
portal : Portal |
The Portal contains basemaps which will be fetched and displayed in the gallery if applicable. When a valid Portal is set then `Portal.fetchBasemapsAsync` is immediately called.
Note: Changing the current active portal will reset the contents of the gallery.
style : View |
The style of the basemap gallery. The gallery can be displayed as a list, grid, or automatically switch between the two based on screen real estate.
Defaults to ViewStyle.Automatic.
Method Documentation
void set |
Convenience function for QML/C++ users which allows the map/scene to be extracted from a SceneView or MapView assigned to view in QML code.
This is only a concern as [Map/Scene]QuickView does not expose a [Map/Scene] property in QML.
For example, to hook up BasemapGallery with a MapQuickView:
MapView {
BasemapGallery {
id: gallery
anchors {
left: view.left
top: view.top
margins: 5
}
onMapChanged: gallery.setGeoModelFromGeoView(this)
}