RasterTileSpec

data class RasterTileSpec(val tiles: List<String>, val tileSize: Int = DEFAULT_TILE_SIZE, val minZoom: Int = 0, val maxZoom: Int = DEFAULT_MAX_ZOOM, val attributionHtml: String? = null)(source)

Tile-scheme description for one raster source.

Renderer-neutral: both map engines can draw XYZ tiles, and each turns this into its own tile source — MapLibre into a raster source, the Google map into a UrlTileProvider. Placeholders are substituted by name rather than position, so an ArcGIS-style .../tile/{z}/{y}/{x} template works unchanged.

Constructors

Link copied to clipboard
constructor(tiles: List<String>, tileSize: Int = DEFAULT_TILE_SIZE, minZoom: Int = 0, maxZoom: Int = DEFAULT_MAX_ZOOM, attributionHtml: String? = null)

Types

Link copied to clipboard
object Companion

Properties

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

Functions

Link copied to clipboard
fun RasterTileSpec.tileUrl(x: Int, y: Int, zoom: Int): String?

Resolves the URL of a single tile from a RasterTileSpec.