Map Controller
abstract class MapController(val mapView: MapView, val account: XweatherAccount) : ViewModel, MapProvider, DefaultLifecycleObserver
A MapController class acts as the interface between the map view of a mapping library and MapsGL-specific functionality.
Inheritors
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Fired when all data sources have finished loading.
Link copied to clipboard
Fired when loading begins for any data source.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Adds a new layer to the map.
Link copied to clipboard
Link copied to clipboard
Adds a new weather layer to the map.
fun addWeatherLayer(config: WeatherConfiguration, id: String? = null, beforeId: String? = null): TileLayer?
Link copied to clipboard
Returns the map's current rotational bearing in degrees, if supported. A bearing of 0
orients the map so that north is up.
Link copied to clipboard
Returns the map's geographical center coordinate.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns A layer given its LayerCode.
Link copied to clipboard
Returns whether the map currently contains a weather layer with the specified identifier.
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
Removes a layer from the map.
Link copied to clipboard
Sets the map's geographical center coordinate.
Link copied to clipboard
Sets textures to bind
Link copied to clipboard
Shows or hides the layer with matching id
Link copied to clipboard
Link copied to clipboard