Tile Source
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
Thunderforest Transport Dark Map.
Tracestrack Topographic Map.
Humanitarian OpenStreetMap style.
OpenTopoMap - Free topographic map.
Carto Light - Minimalist light basemap.
Carto Dark - Dark theme basemap.
Carto Voyager - Modern colorful basemap.
Stamen Toner - High-contrast black and white.
Stamen Watercolor - Artistic watercolor rendering.
Properties
Provider name for API key lookup (e.g., "thunderforest")
Attribution text required by the tile provider
URL to the attribution/copyright page
Returns a representation of an immutable list of all enum entries, in the order they're declared.
Whether this tile source requires an API key
The URL template with placeholders
Functions
Returns a human-readable provider name for this tile source.
Generates the tile URL for the specified tile coordinate.
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.)
Returns an array containing the constants of this enum type, in the order they're declared.