createPackdataService
suspend fun createPackdataService(mapId: Int, environment: Environment = Environment.PROD): PackdataService
Creates a service for downloading a map's offline data package, which can later be passed to create with an offlineZip to open the map without a network connection.
Return
A service that downloads the map's offline data package.
Parameters
mapId
The identifier of the map whose package to download.
environment
The Wemap backend environment to download from. Defaults to Environment.PROD.