GeoJSONSourceDescriptor

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

Configuration for a GeoJSON-backed source. At runtime, com.xweather.mapsgl.map.MapController.addSource creates a com.xweather.mapsgl.sources.GeoJSONSource; use com.xweather.mapsgl.map.MapController.getSource and cast to that type to set com.xweather.mapsgl.sources.GeoJSONSource.data or adjust com.xweather.mapsgl.sources.GeoJSONSource.url after registration.

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
Link copied to clipboard
open override val kind: DataSourceKind
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?