Class BasemapGallery
Displays a collection of images representing basemaps from ArcGIS Online, a user-defined Portal, or a user-defined collection.
Inheritance
Implements
Namespace: Esri.ArcGISRuntime.Toolkit.Maui
Assembly: Esri.ArcGISRuntime.Toolkit.Maui.dll
Syntax
public class BasemapGallery : TemplatedView, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ILayout, ILayoutController, IVisualTreeElement, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Remarks
If connected to a GeoView, changing the basemap selection will change the connected Map or Scene's basemap. Only basemaps whose spatial reference matches the map or scene's spatial reference can be selected for display.
Constructors
| Name | Description |
|---|---|
| BasemapGallery() | Initializes a new instance of the BasemapGallery class. |
Fields
| Name | Description |
|---|---|
| AvailableBasemapsProperty | Identifies the AvailableBasemaps bindable property. |
| GalleryViewStyleProperty | Identifies the GalleryViewStyle bindable property. |
| GeoModelProperty | Identifies the GeoModel bindable property. |
| GridItemTemplateProperty | Identifies the GridItemTemplate bindable property. |
| ListItemTemplateProperty | Identifies the ListItemTemplate bindable property. |
| PortalProperty | Identifies the Portal bindable property. |
| SelectedBasemapProperty | Identifies the SelectedBasemap bindable property. |
Properties
| Name | Description |
|---|---|
| AvailableBasemaps | Gets or sets the gallery of basemaps to show. |
| GalleryViewStyle | Gets or sets the view style for the gallery. |
| GeoModel | Gets or sets the connected GeoModel. |
| GridItemTemplate | Gets or sets the template used to show basemaps in a grid. |
| ListItemTemplate | Gets or sets the data template used to show basemaps in a list. |
| Portal | Gets or sets the portal used to populate the basemap list. |
| SelectedBasemap | Gets or sets the selected basemap. |
Methods
| Name | Description |
|---|---|
| OnApplyTemplate() | |
| OnSizeAllocated(double, double) | Method that is called when the size of the element is set during a layout cycle. Implement this method to add class handling for this event. |
Events
| Name | Description |
|---|---|
| BasemapSelected | Event raised when a basemap is selected. |