MapLayer

interface MapLayer<DataType : TileData, RenderContext : LayerRenderContext<Any>> : MapEventObserver, EventSource

MapLayer.kt

Adapted from IOS version

Author

Jason Suto 12/18/23

Inheritors

Properties

Link copied to clipboard
abstract var alpha: Float
Link copied to clipboard
abstract val enabled: Boolean
Link copied to clipboard
Link copied to clipboard
abstract val id: String
Link copied to clipboard
abstract val isDirty: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract var numH: Int
Link copied to clipboard
abstract var numW: Int
Link copied to clipboard
abstract var paint: PaintStyle
Link copied to clipboard
abstract var source: TileSource<DataType>
Link copied to clipboard
abstract val viewport: Viewport?
Link copied to clipboard
val MapLayer<*, *>.viewport: Viewport?
Link copied to clipboard
abstract var visible: Boolean

Functions

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: Context)
abstract fun onAdd()
abstract fun onAdd(context: RenderContext<Any>, tileLayer: TileLayer)
Link copied to clipboard
abstract fun onClick()
Link copied to clipboard
abstract fun onHidden()
Link copied to clipboard
abstract suspend fun onMove()
Link copied to clipboard
abstract suspend fun onMoveEnd()
Link copied to clipboard
abstract fun onMoveStart()
Link copied to clipboard
abstract fun onRemove()
Link copied to clipboard
abstract fun onResize()
Link copied to clipboard
abstract fun onVisible()
Link copied to clipboard
abstract fun prerender(elapsedTime: Double)
Link copied to clipboard
inline fun <EventType : Event> EventSource.publisher(eventType: Class<EventType>): Flow<EventType>
Link copied to clipboard
abstract fun render(texUnit: HashMap<String, Int>, camera: Camera)
Link copied to clipboard
inline suspend fun <EventType : Event> EventSource.subscribe(eventType: Class<EventType>, crossinline handler: (EventType) -> Unit)
Link copied to clipboard
Link copied to clipboard
abstract suspend fun update()