Map Layer
A tile-backed map layer: grid dimensions, source, paint, renderer, timeline, and visibility.
Concrete implementations include TileLayer subclasses (encoded sample, raster, vector, particles). Register layers with com.xweather.mapsgl.map.MapController.addLayer / weather helpers; the controller wires mapController, renderer, and Mapbox custom layer hosting.
Parameters
Tile payload type from source.
Renderer context type passed into the GL pipeline.
Inheritors
Types
Properties
Whether to invert the mask layer's output.
The map controller that this layer is associated with.
The time series associated with the layer, if any.
The layer's timing configuration.
Functions
Returns the time series data provider to use for animating the layer, if any.
Called when the observer is attached with no tile-layer context (simple registration).
Called when the observer is attached with render context and owning tile layer / controller.
First callback when a gesture or programmatic camera change begins.
Called when the data source's metadata has been loaded.
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.
Flags the layer as dirty so that it is updated during the next render frame.