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
Functions
Link copied to clipboard
fun addSource(layerId: String, sourceId: String = "blank", descriptor: SourceDescriptor?): DataSource
Link copied to clipboard
fun addWeatherLayer(config: WeatherService.WeatherLayerConfiguration, code: String? = null, beforeId: String? = null): TileLayer?
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 weather layer from the map.
Removes a 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.