From 0da6d8a646746831819525fd37cff3ed0af9589b Mon Sep 17 00:00:00 2001 From: Ivo van Dongen Date: Mon, 6 Mar 2017 17:19:38 -0800 Subject: [core] clear source when removed from style --- src/mbgl/style/source_impl.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mbgl/style/source_impl.hpp') diff --git a/src/mbgl/style/source_impl.hpp b/src/mbgl/style/source_impl.hpp index ea2135c3c1..54af93c04f 100644 --- a/src/mbgl/style/source_impl.hpp +++ b/src/mbgl/style/source_impl.hpp @@ -87,6 +87,9 @@ public: // be initialized to true so that Style::isLoaded() does not produce false positives if // called before Style::recalculate(). bool enabled = true; + + // Detaches from the style + void detach(); protected: void invalidateTiles(); -- cgit v1.2.1