MapController

abstract class MapController(val account: XweatherAccount?) : MapProvider

Inheritors

Constructors

Link copied to clipboard
constructor(account: XweatherAccount?)

Properties

Link copied to clipboard
Link copied to clipboard
lateinit var camera: Camera
Link copied to clipboard
abstract var centerLatLng: Coordinate
Link copied to clipboard
var layers: MutableMap<String, MapLayer<TileData, LayerRenderContext<Any>>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
lateinit var scene: Scene
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val viewport: Viewport

Functions

Link copied to clipboard
open fun add(layerID: String, layerHost: CustomLayerHost)
Link copied to clipboard
fun addSource(layerId: String, sourceId: String = "blank", descriptor: SourceDescriptor?): DataSource
Link copied to clipboard
open override fun getBearing(): Double
Link copied to clipboard
open override fun getBounds(): LatLonBounds
Link copied to clipboard
open override fun getCenter(): Coordinate
Link copied to clipboard
open override fun getFov(): Double
Link copied to clipboard
Link copied to clipboard
open override fun getPitch(): Double
Link copied to clipboard
open override fun getSize(): Size
Link copied to clipboard
open override fun getZoom(): Double
Link copied to clipboard

Returns whether the map currently contains a data source with the specified identifier.

Link copied to clipboard
open override fun off(name: String, callback: (event: Any) -> Unit)
Link copied to clipboard
open override fun on(name: String, callback: (event: Any) -> Unit)
Link copied to clipboard
open fun redraw()
Link copied to clipboard
open fun removeLayer(layerID: String)
Link copied to clipboard
open fun setCenter(center: Coordinate)
Link copied to clipboard
fun setPaintProperty(layerId: String, property: String, value: Any)
Link copied to clipboard
open fun setZoom(zoom: Double)
Link copied to clipboard