VectorSourceDescriptor

data class VectorSourceDescriptor(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

Parameters

url

Tile URL template. Always includes {z}, {x}, {y}; {s} is a subdomain index (1–4), see com.xweather.mapsgl.sources.TileSource.makeTileURL. If authenticator is an com.xweather.mapsgl.weather.XweatherAuthenticator (for example com.xweather.mapsgl.weather.WeatherService.authenticator), these placeholders are also merged each request: {accessKey} (client id + _ + secret), {clientId}, {clientSecret}, and the documentation segment [CLIENT_ID]_[CLIENT_SECRET]. When authenticator is null, com.xweather.mapsgl.map.MapController.addSource uses the controller's com.xweather.mapsgl.weather.WeatherService.authenticator automatically.

Time in the path (Aeris / AMP-style vector tiles): use a {time::…} token so each tile request uses com.xweather.mapsgl.sources.VectorTileSource.validTime (driven by the map timeline), the same pattern as WeatherService.vectorTileURLPathTemplate (/{accessKey}/{code}/{z}/{x}/{y}/{time::utc:format[yyyyMMddhhmm00]}.pbf). That expands to a 14-digit UTC offset (yyyyMMddHHmm plus a literal 00 suffix from the format string). A hand-written 12-digit segment (e.g. 202603061110) is usually not the same offset the API expects and often yields missing_resource_error. Use …/0.pbf only when the product docs say that offset selects the correct tiles.

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
Link copied to clipboard
Link copied to clipboard
var bounds: LatLonBounds?
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var url: String?