ImageSourceDescriptor

data class ImageSourceDescriptor(val id: String, var url: String? = null, var metadataUrl: String? = null, var minZoom: Float? = null, var maxZoom: Float? = null, var bounds: LatLonBounds? = null, var tileSize: TileSize? = null, var attribution: String? = null, var authenticator: XweatherAuthenticator? = null) : SourceDescriptor

Raster or image-tile source (PNG/JPEG tiles, satellite, etc.).

Constructors

Link copied to clipboard
constructor(id: String, url: String? = null, metadataUrl: String? = null, minZoom: Float? = null, maxZoom: Float? = null, bounds: LatLonBounds? = null, tileSize: TileSize? = null, attribution: String? = null, authenticator: XweatherAuthenticator? = null)

Properties

Link copied to clipboard

Attribution string for the map.

Link copied to clipboard
Link copied to clipboard
var bounds: LatLonBounds?

Geographic limits for the source, if any.

Link copied to clipboard
open override val id: String

Stable id used as the Mapbox style source id and MapsGL registry key.

Link copied to clipboard
open override val kind: DataSourceKind

Discriminator matching com.xweather.mapsgl.sources.DataSource.kind after registration.

Link copied to clipboard

Highest zoom level served (optional).

Link copied to clipboard

Endpoint for tile metadata / valid times when applicable.

Link copied to clipboard

Lowest zoom level served (optional).

Link copied to clipboard

Logical tile size in px (often 256 or 512).

Link copied to clipboard
Link copied to clipboard
var url: String?

Tile URL template with {z}, {x}, {y} and optional time/subdomain tokens per product docs.