Map Layer
interface MapLayer<DataType : TileData, RenderContext : LayerRenderContext<Any>> : MapEventObserver, EventSource
Inheritors
Properties
Link copied to clipboard
Link copied to clipboard
Whether to invert the mask layer's output.
Link copied to clipboard
Link copied to clipboard
The map controller that this layer is associated with.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The time series associated with the layer, if any.
Link copied to clipboard
The layer's timing configuration.
Functions
Link copied to clipboard
Link copied to clipboard
Returns the time series data provider to use for animating the layer, if any.
Link copied to clipboard
abstract fun getVisibleTileCoords(latLonBounds: LatLonBounds, tileBounds: TileBounds, zoom: Double, wrap: Boolean): List<TileCoord>
Link copied to clipboard
abstract fun onAdd(context: RenderContext<Any>, tileLayer: TileLayer, controller: MapboxMapController)
Link copied to clipboard
Link copied to clipboard
Called when the data source's metadata has been loaded.
Link copied to clipboard
Refreshes the layer by re-rendering it. If a complete refresh is needed including triggering the associated data source to reload, then pass an argument of true
when calling the method. Otherwise, existing cached data will be used when the layer is re-rendered.
Link copied to clipboard
Flags the layer as dirty so that it is updated during the next render frame.