CustomLayerHost

interface CustomLayerHost

Interface for hosting a custom map style layer.

Functions

contextLost
Link copied to clipboard
abstract fun contextLost()
Called when the system has destroyed the underlying GL context.
deinitialize
Link copied to clipboard
abstract fun deinitialize()
Destroy any GL state needed by the custom layer, and deallocate context, if necessary.
initialize
Link copied to clipboard
abstract fun initialize()
Initialize any GL state needed by the custom layer.
prerender
Link copied to clipboard
open fun prerender(@NonNull parameters: CustomLayerRenderParameters): CustomLayerRenderConfiguration
Note!
render
Link copied to clipboard
abstract fun render(@NonNull parameters: CustomLayerRenderParameters)
Render the layer.
renderToTile
Link copied to clipboard
open fun renderToTile(@NonNull tileID: CanonicalTileID)
Note!