diff options
Diffstat (limited to 'include/mbgl/map/tile_data.hpp')
-rw-r--r-- | include/mbgl/map/tile_data.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mbgl/map/tile_data.hpp b/include/mbgl/map/tile_data.hpp index 3e639fcea1..9aaef84e04 100644 --- a/include/mbgl/map/tile_data.hpp +++ b/include/mbgl/map/tile_data.hpp @@ -49,6 +49,10 @@ public: void reparse(); const std::string toString() const; + inline bool ready() const { + return state == State::parsed; + } + // Override this in the child class. virtual void beforeParse(); virtual void parse() = 0; |