GeoJSONSourceDescriptor

constructor(id: String)

In-memory GeoJSON only — assign data before com.xweather.mapsgl.map.MapController.addSource, or com.xweather.mapsgl.sources.GeoJSONSource.data after it. Prefer this constructor over default-arg GeoJSONSourceDescriptor(id = …) when linking against a minified AAR.


constructor(id: String, bundledAssetPath: String)

Loads GeoJSON from bundledAssetPath under the host app's src/main/assets/ when the source is added. Example: GeoJSONSourceDescriptor("countries", "geojson/conus.geojson").


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, bundledAssetPath: String? = null)