Determine the map's load status which can be: NotLoaded
, FailedToLoad
, Loading
, Loaded
.
Knowing the map's load state may be required before subsequent actions can be executed.
The load status of the map will be displayed as the sample loads.
- Create a
Map
and add it to aMapView
. - Use the
Map.LoadStatusChanged
event to listen for changes in the map's load status.
The LoadStatus
is Loaded
when any of the following criteria are met:
- The map has a valid spatial reference.
- The map has an an initial viewpoint.
- One of the map's predefined layers has been created.
- ILoadable
- Map
- MapView
load status, loadable pattern, map