custom

fun custom(urlTemplate: String): TileProvider(source)

Creates a custom URL-based tile provider with the specified URL template.

URL template should contain placeholders {z}, {x}, {y} for zoom, column, and row.

Example:

val customProvider = PredefinedTileProviders.custom(
"https://example.com/tiles/{z}/{x}/{y}.png"
)

Return

TileProvider for the custom URL

Parameters

urlTemplate

URL pattern with {z}, {x}, {y} placeholders