onAdd

abstract fun onAdd()

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.