Show / Hide Table of Contents

Class GeoModel

A base class for Map or Scene, which contain layers and additional properties and can be displayed in a GeoView.

Inheritance
System.Object
GeoModel
Map
Scene
Implements
System.ComponentModel.INotifyPropertyChanged
ILoadable
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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:

  • Pass a Map to a map view.
  • Pass a Scene to a scene view.

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

TargetVersions
.NET Standard 2.0100.12 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.12 - 200.7
Xamarin.Android100.12 - 100.15
Xamarin.iOS100.12 - 100.15
UWP100.12 - 200.7
In This Article
Back to top Copyright © 2022 Esri.