WemapMapSDK

Customizable, interactive indoor/outdoor maps built on MapLibre.

Overview

WemapMapSDK embeds a Wemap map in your app. Create a MapSession (which loads the map's data), pass it to a WemapMapView via configure, and present the view. The view's managers and properties are only available after it has finished loading — await it with awaitLoaded() (or observe loadPhases) and touch the view only once it is loaded.

By default the map tracks location with the Android fused provider. To use VPS or GPS instead, attach any LocationSource from WemapPositioningSDK to userLocationManager — once the view is loaded:

import com.getwemap.sdk.map.MapSession
import com.getwemap.sdk.map.configs.MapViewConfig

val session = MapSession.create(context, mapId = 19158, token = "YOUR_TOKEN")
mapView.configure(session, MapViewConfig())

lifecycleScope.launch {
mapView.awaitLoaded()
// the map is ready — its managers are now available
mapView.userLocationManager.locationSource = locationSource
}

Packages

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard