MapService

abstract class MapService : BaseService

An abstract class representing a MapService, which provides methods for retrieving maps, scenes, and features. It extends the BaseService class and requires a context parameter for initialization.

Parameters

context

The context used for initialization and performing operations.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun getArcGisLocationProvider(): LocationDataSource

Retrieves the ArcGIS location provider used by the MapService.

Link copied to clipboard
abstract suspend fun getFeatures(layerList: LayerList): List<Feature>
abstract fun getFeatures(layerList: LayerList, completionCallback: CompletionCallback<List<Feature>>)

Retrieves a list of features from the given layer list asynchronously.

Link copied to clipboard
abstract suspend fun getLastKnownLocation(): Coordinates
abstract fun getLastKnownLocation(completionCallback: CompletionCallback<Coordinates>)

Retrieves the last known location asynchronously.

Link copied to clipboard
abstract fun getMap(venue: Venue, offlineMode: Boolean = false, completionCallback: CompletionCallback<String>)
abstract suspend fun getMap(venue: Venue, offlineMode: Boolean = false, license: String? = null): String

Retrieves a map for the specified venue asynchronously.

abstract fun getMap(venue: Venue, offlineMode: Boolean = false, license: String? = null, onComplete: (String) -> Unit, onProgress: (Int, Int, Int) -> Unit, onError: (Throwable) -> Unit)

Retrieves a map for the specified venue asynchronously with progress and error callbacks.

Link copied to clipboard
abstract fun getScene(venue: Venue, offlineMode: Boolean = false, completionCallback: CompletionCallback<String>)
abstract suspend fun getScene(venue: Venue, offlineMode: Boolean = false, license: String? = null): String

Retrieves a scene for the specified venue asynchronously.

abstract fun getScene(venue: Venue, offlineMode: Boolean = false, license: String? = null, onComplete: (String) -> Unit, onProgress: (Int, Int, Int) -> Unit, onError: (Throwable) -> Unit)

Retrieves a scene for the specified venue asynchronously with progress and error callbacks.

Link copied to clipboard
abstract suspend fun <T> searchFeatures(layerList: LayerList, type: Class<T>): List<Feature>
abstract fun <T> searchFeatures(layerList: LayerList, type: Class<T>, completionCallback: CompletionCallback<List<Feature>>)

Searches for features of a specific type in the given layer list asynchronously.

abstract suspend fun searchFeatures(layerList: LayerList, keyword: String, locatorTask: LocatorTask): List<Feature>
abstract fun searchFeatures(layerList: LayerList, keyword: String, locatorTask: LocatorTask, completionCallback: CompletionCallback<List<Feature>>)

Searches for features in the given layer list using a keyword and locator task asynchronously.