diff --git a/platform/android/src/style/layers/layer.hpp b/platform/android/src/style/layers/layer.hpp index bde351f70..5717852d0 100644 --- a/platform/android/src/style/layers/layer.hpp +++ b/platform/android/src/style/layers/layer.hpp @@ -29,6 +29,9 @@ public: void addToMap(mbgl::Map&, mbgl::optional); + // Release the owned view and return it + std::unique_ptr releaseCoreLayer(); + jni::Local getId(jni::JNIEnv&); jni::Local getSourceId(jni::JNIEnv&); @@ -77,9 +80,6 @@ protected: */ Layer(std::unique_ptr); - // Release the owned view and return it - std::unique_ptr releaseCoreLayer(); - // Owned layer is set when creating a new layer, before adding it to the map std::unique_ptr ownedLayer;