TileSource

Defines available tile sources for map rendering.

Each source provides a URL template for fetching map tiles, attribution text, maximum zoom level, and API key requirements. Supports subdomain rotation using the {s} placeholder for load balancing across multiple tile servers.

URL Placeholders

  • {z}: Zoom level

  • {x}: Tile column (west to east)

  • {y}: Tile row (north to south)

  • {s}: Subdomain for load balancing (rotates through a, b, c)

  • {apikey}: API key injected at runtime from ApiKeyManager

Entries

Link copied to clipboard

Standard OpenStreetMap Mapnik rendering.

Link copied to clipboard

CyclOSM cycling-focused map from OpenStreetMap France.

Link copied to clipboard

Thunderforest Cycle Map.

Link copied to clipboard

Thunderforest Transport Map.

Link copied to clipboard

Thunderforest Transport Dark Map.

Link copied to clipboard

Tracestrack Topographic Map.

Link copied to clipboard

Humanitarian OpenStreetMap style.

Link copied to clipboard

OPNVKarte - German public transport map.

Link copied to clipboard

OpenTopoMap - Free topographic map.

Link copied to clipboard

Carto Light - Minimalist light basemap.

Link copied to clipboard

Carto Dark - Dark theme basemap.

Link copied to clipboard

Carto Voyager - Modern colorful basemap.

Link copied to clipboard

Stamen Toner - High-contrast black and white.

Link copied to clipboard

Stamen Watercolor - Artistic watercolor rendering.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Provider name for API key lookup (e.g., "thunderforest")

Link copied to clipboard

Attribution text required by the tile provider

Link copied to clipboard

URL to the attribution/copyright page

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard

Maximum zoom level supported by this tile source

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

Whether this tile source requires an API key

Link copied to clipboard

The URL template with placeholders

Functions

Link copied to clipboard

Returns a human-readable provider name for this tile source.

Link copied to clipboard

Generates the tile URL for the specified tile coordinate.

Link copied to clipboard

Checks if an API key is configured for this tile source.

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.