OpenglES in maplibre
#1984
-
If I want to use Opengles to render my own things onto the bottom map of the maplibre, how should I do it? Is there a simple example |
Beta Was this translation helpful? Give feedback.
Answered by
louwers
Dec 25, 2023
Replies: 1 comment 18 replies
-
Hi @zjl114012, please check out the custom layer functionality. Work is underway to replace the OpenGL ES specific custom layer functionality with something platform-agnostic (that will work for both OpenGL ES and Metal) but for now this is what you should use if you want to render something with full control. |
Beta Was this translation helpful? Give feedback.
18 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here are the relevant Android files that showcase how to use a custom layer.
maplibre-native/platform/android/src/example_custom_layer.cpp
Line 125 in 47028a6
maplibre-native/platform/android/MapboxGLAndroidSDKTestApp/src/main/java/org/maplibre/android/testapp/activity/customlayer/CustomLayerActivity.kt
Line 21 in 47028a6