OfflineMapState

Represents the state of the OfflineMapAreas composable.

Behavior

This state class provides two constructors to initialize the OfflineMapAreas composable using an ArcGISMap or an OfflineMapInfo. Therefore, the OfflineMapAreas composable can be used either when the device is connected to or disconnected from the network.

In other words, the composable can be used in the following situations:

  • When the device is connected to the network…

    • Displays preplanned map areas from a web map that are available for download.

    • When the web map doesn’t contain preplanned map areas, users can add and download on-demand map areas by specifying a geographic area and level of detail.

    • Use the constructor with ArcGISMap to create the state.

  • When the device is disconnected from the network…

    • Displays only downloaded map areas by retrieving offline map info from the device.

    • Use the constructor with OfflineMapInfo to create the state.

  • When the device network connection has changed…

    • Re-initialize the the state OfflineMapState using the desired constructor.

Associated Types

OfflineMapState has the following associated types:

Since

200.8.0

Constructors

Link copied to clipboard
constructor(arcGISMap: ArcGISMap, onSelectionChanged: (ArcGISMap?) -> Unit = { })

Represents the state of the offline map with a given ArcGISMap.

constructor(offlineMapInfo: OfflineMapInfo, onSelectionChanged: (ArcGISMap?) -> Unit = { })

Represents the state of the offline map with a given OfflineMapInfo.

Properties

Link copied to clipboard

The status of the initialization of the state object.

Functions

Link copied to clipboard

Resets the current selection of the map areas.