WmsUrlTileProvider

class WmsUrlTileProvider(width: Int = 256, height: Int = 256, urlFormatter: (xMin: Double, yMin: Double, xMax: Double, yMax: Double, zoom: Int) -> String) : UrlTileProvider

A UrlTileProvider for Web Map Service (WMS) layers that use the EPSG:3857 (Web Mercator) projection.

Parameters

width

the width of the tile in pixels.

height

the height of the tile in pixels.

urlFormatter

a lambda that returns the WMS URL for the given bounding box coordinates (xMin, yMin, xMax, yMax) and zoom level.

Constructors

Link copied to clipboard
constructor(width: Int = 256, height: Int = 256, urlFormatter: (xMin: Double, yMin: Double, xMax: Double, yMax: Double, zoom: Int) -> String)

Functions

Link copied to clipboard
fun getTile(x: Int, y: Int, zoom: Int): Tile?
Link copied to clipboard
open override fun getTileUrl(x: Int, y: Int, zoom: Int): URL?