MapSession

The session type to create when using the Map SDK.

MapSession is a CoreSession specialized for map rendering: create one and pass it to WemapMapView to display the map. As a CoreSession it carries all the shared state the Wemap SDKs build on, so the same MapSession can also be handed to GeoARView and the positioning location sources to keep navigation, points-of-interest selection, and the user's location consistent across every view.

On top of CoreSession it adds support for offline maps: open a map with no network connection via Companion.create with an offlineZip, using a data package previously downloaded with createPackdataService.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val dataStore: DataStore
Link copied to clipboard
val fileService: FileService
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val locationProcessor: LocationProcessor
Link copied to clipboard
val locationSourceManager: LocationSourceManager
Link copied to clipboard
val mapCenter: Point
Link copied to clipboard
val mapData: MapData
Link copied to clipboard
val mapId: Int
Link copied to clipboard
val navigationManager: NavigationManagerImpl?
Link copied to clipboard
val pointOfInterestManager: PointOfInterestManagerImpl?
Link copied to clipboard
val systemAttitudeSource: SystemAttitudeSource
Link copied to clipboard

Functions

Link copied to clipboard
fun deinit()
Link copied to clipboard
fun getNavigationManager(mapRenderer: NavigationRenderer?, arRenderer: NavigationRenderer?, locationProvider: LocationProvider, lifecycleScope: CoroutineScope, itineraryProvider: ItineraryProvider?): NavigationManagerImpl
Link copied to clipboard
fun getPointOfInterestManager(mapRenderer: PointOfInterestRenderer?, arRenderer: PointOfInterestRenderer?, lifecycleScope: CoroutineScope): PointOfInterestManagerImpl