summaryrefslogtreecommitdiff
path: root/platform/android/src/style/layers/layer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/src/style/layers/layer.hpp')
-rw-r--r--platform/android/src/style/layers/layer.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/platform/android/src/style/layers/layer.hpp b/platform/android/src/style/layers/layer.hpp
index 0fb679152b..67baf789aa 100644
--- a/platform/android/src/style/layers/layer.hpp
+++ b/platform/android/src/style/layers/layer.hpp
@@ -35,6 +35,10 @@ public:
style::Layer& get();
+ void setDetached(jni::JNIEnv&);
+
+ jboolean isDetached(jni::JNIEnv&);
+
void setLayoutProperty(jni::JNIEnv&, const jni::String&, const jni::Object<>& value);
void setPaintProperty(jni::JNIEnv&, const jni::String&, const jni::Object<>& value);
@@ -90,6 +94,9 @@ protected:
// Map is set when the layer is retrieved or after adding to the map
mbgl::Map* map;
+
+ // new style has started loading, making this layer invalid
+ bool detached;
};
/**