Mapbox Map Controller
class MapboxMapController(val mapView: MapView, context: Context, val account: XweatherAccount?, lifecycleOwner: LifecycleOwner) : MapController
Mapbox map controller.
Parameters
lifecycle Owner
Constructors
Link copied to clipboard
constructor(mapView: MapView, context: Context, account: XweatherAccount?, lifecycleOwner: LifecycleOwner)
Create MapboxMapController
Properties
Link copied to clipboard
Your XweatherAccount that contains your userID and userSecret.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
-1 is fast, 1 is sharper. This is also sent to TileLayer.
Functions
Link copied to clipboard
fun addSource(layerId: String, sourceId: String = "blank", descriptor: SourceDescriptor?): DataSource
Link copied to clipboard
fun addWeatherLayer(config: WeatherService.WeatherLayerConfiguration, beforeId: String? = null): TileLayer?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns whether the map currently contains a weather layer with the specified identifier.
Link copied to clipboard
Removes a layer from the map.
Link copied to clipboard
Removes a weather layer from the map.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Shows or hides the layer with matching id
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Called when a tile loads and when buttons are pressed. Update Camera is false when tile loads, true when buttons are pressed.