Map Event Observer
interface MapEventObserver
Lifecycle and interaction callbacks for objects attached to the map pipeline (layers, controls, etc.).
com.xweather.mapsgl.layers.tile.MapLayer implements this interface so hosts can react to visibility, camera moves, and teardown consistently with the Mapbox-backed controller.
Inheritors
Functions
Link copied to clipboard
Called when the observer is attached with no tile-layer context (simple registration).
abstract fun onAdd(context: RenderContext<Any>, tileLayer: TileLayer, controller: MapboxMapController)
Called when the observer is attached with render context and owning tile layer / controller.
Link copied to clipboard
First callback when a gesture or programmatic camera change begins.