Custom Layer
A style layer that is rendered by native drawing code that you provide.
The host passed to the constructor is a pointer to a native mln::style::CustomLayerHost implementation, created in your own JNI code. The layer takes ownership of the host. Its callbacks run on the render thread and issue draw calls directly with the graphics API of the active rendering backend (OpenGL ES or Vulkan).
This is an advanced feature. Use it at your own risk. Bugs in your drawing code can break rendering or crash the app, and keeping it working with future versions of MapLibre Native is up to you.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
When the visibility was set as an expression, this returns the current evaluated value.
Link copied to clipboard
Get the visibility of this layer as an expression.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard