diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp index 83bb05521..436a07cb4 100644 --- a/include/mbgl/map/map.hpp +++ b/include/mbgl/map/map.hpp @@ -3,6 +3,7 @@ #include #include +#include #include #include #include @@ -76,14 +77,6 @@ public: void render(); // Notifies the Map thread that the state has changed and an update might be necessary. - using UpdateType = uint32_t; - enum class Update : UpdateType { - Nothing = 0, - StyleInfo = 1 << 0, - Debug = 1 << 1, - DefaultTransitionDuration = 1 << 2, - Classes = 1 << 3, - }; void triggerUpdate(Update = Update::Nothing); // Triggers a render. Can be called from any thread. diff --git a/include/mbgl/map/update.hpp b/include/mbgl/map/update.hpp new file mode 100644 index 000000000..3d02434c6 --- /dev/null +++ b/include/mbgl/map/update.hpp @@ -0,0 +1,18 @@ +#ifndef MBGL_MAP_UPDATE +#define MBGL_MAP_UPDATE + +namespace mbgl { + +using UpdateType = uint32_t; + +enum class Update : UpdateType { + Nothing = 0, + StyleInfo = 1 << 0, + Debug = 1 << 1, + DefaultTransitionDuration = 1 << 2, + Classes = 1 << 3, +}; + +} + +#endif