Class GeoModel
A base class for Map or Scene, which contain layers and additional properties and can be displayed in a GeoView.
Namespace: Esri.ArcGISRuntime.Mapping
Assembly: Esri.ArcGISRuntime.dll
Syntax
public abstract class GeoModel : INotifyPropertyChanged, ILoadable
Remarks
The base class GeoModel represents the model in a model-view-controller (MVC) architecture, while GeoView represents the view. To display a map or scene to the user, pass GeoModel to its appropriate geo view, as follows:
GeoModel has many properties that are common to both maps and scenes. For example:
- Each map or scene typically has a Basemap to help orient the users.
- The OperationalLayers collection gives you access to the vector data (points, line, polygons), raster data, and attribute information provided by the Map or Scene.
- The SpatialReference determines how spatial data relates to real-world space.
Properties
Name | Description |
---|---|
AllLayers | Gets all layers in the order they are rendered (bottom-most first). |
Basemap | Gets or sets the basemap for this map or scene. |
Bookmarks | Gets the collection of bookmarks defined for this map or scene. |
FloorDefinition | Gets or sets the properties that allow a map or a scene to be floor-aware. |
FloorManager | Gets the object that manages the data displayed for a floor-aware map or scene, allowing filtering based on floor levels. |
GeotriggersInfo | Gets an object that presents information about the set of Geotrigger objects defined for the map or scene. |
InitialViewpoint | Gets or sets the initial viewing state when the map or scene is first displayed. |
Item | Gets the ArcGIS Item associated with this map or scene. |
LoadError | Gets the load error for this instance - if any. |
LoadSettings | Gets or sets the properties that control the default loading and rendering behavior of layers in this map or scene. |
LoadStatus | Gets the current load status of the map or scene. |
OperationalLayers | Gets or sets the collection of operational layers that can access geographic data from a file or a service. |
SpatialReference | Gets the spatial reference for this map or scene. |
Tables | Gets the list of tables in the map or scene. Unlike OperationalLayers, tables are not displayed by the geo view. |
TransportationNetworks | Gets the collection of transportation network datasets defined for this map or scene. |
Version | Gets the version of the Map or Scene, read when it is loaded. The version of a newly created Map or Scene is empty. |
Methods
Name | Description |
---|---|
CancelLoad() | Cancels an ongoing load. |
LoadAsync() | Initiates loading of the map or scene. |
RetryLoadAsync() | Retries the load operation in case of a load error. |
Events
Name | Description |
---|---|
Loaded | Occurs when this instance is loaded. |
LoadStatusChanged | Occurs when the instance's LoadStatus has changed. |
PropertyChanged | Occurs when a property value changes. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.12 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.12 - 200.5 |
Xamarin.Android | 100.12 - 100.15 |
Xamarin.iOS | 100.12 - 100.15 |
UWP | 100.12 - 200.5 |