PredefinedTileProviders

Factory object providing predefined TileProvider implementations for popular public tile overlay services.

These providers offer various overlay types including weather, transportation, outdoor activities and maritime data.

Example usage:

// Add OpenSeaMap nautical overlay
val seaMapOverlay = TileOverlayOptions()
.tileProvider(PredefinedTileProviders.openSeaMap())
.zIndex(1.0f)
mapView.addTileOverlay(seaMapOverlay)

// Add railway overlay
val railwayOverlay = TileOverlayOptions()
.tileProvider(PredefinedTileProviders.openRailwayMap())
.zIndex(1.0f)
mapView.addTileOverlay(railwayOverlay)

All providers use 256×256 pixel tiles with Web Mercator projection (EPSG:3857). See the "Tile Overlays" section of docs/MAP_TYPES.md for the available services.

Functions

Link copied to clipboard
fun custom(urlTemplate: String): TileProvider

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

Link copied to clipboard

Creates a provider for OpenRailwayMap overlay.

Link copied to clipboard

Creates a provider for OpenSeaMap nautical charts overlay.

Link copied to clipboard

Creates a provider for OpenSnowMap winter sports overlay.

Link copied to clipboard

Creates a provider for the Stamen Terrain lines overlay.

Link copied to clipboard

Creates a provider for the Stamen Toner lines overlay.

Link copied to clipboard

Creates a provider for Waymarked Trails cycling overlay.

Link copied to clipboard

Creates a provider for Waymarked Trails hiking overlay.

Link copied to clipboard

Creates a provider for Waymarked Trails mountain biking overlay.

Link copied to clipboard

Creates a provider for Waymarked Trails skating overlay.