OpenStreetMapTileProvider

class OpenStreetMapTileProvider(client: HttpClient, cacheDirectory: Path, parallelism: Int = 4, cacheCapacity: Int = 200, osmBaseUrl: String = "https://tile.openstreetmap.org") : MapTileProvider

A MapTileProvider based on Open Street Map API. With in-memory and file cache

Constructors

Link copied to clipboard
constructor(client: HttpClient, cacheDirectory: Path, parallelism: Int = 4, cacheCapacity: Int = 200, osmBaseUrl: String = "https://tile.openstreetmap.org")

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val tileSize: Int

Functions

Link copied to clipboard
open override fun CoroutineScope.loadTileAsync(tileId: TileId): Deferred<MapTile>
Link copied to clipboard
open fun toCoordinate(i: Int): Float
Link copied to clipboard
open fun toIndex(d: Float): Int