- static rendering now also runs in a separate thread; you have to start it with map.start(Map::Mode::Static) and join the thread with map.stop() before destructing the Map object - map.renderStill() takes a callback with will be invoked on the *map* thread, so you'll have to figure out your own method of dispatching back to the main thread.
23 lines
439 B
C++
23 lines
439 B
C++
#ifndef MBGL_MAP_UPDATE
|
|
#define MBGL_MAP_UPDATE
|
|
|
|
#include <cstdint>
|
|
|
|
namespace mbgl {
|
|
|
|
using UpdateType = uint32_t;
|
|
|
|
enum class Update : UpdateType {
|
|
Nothing = 0,
|
|
StyleInfo = 1 << 0,
|
|
Debug = 1 << 1,
|
|
DefaultTransitionDuration = 1 << 2,
|
|
Classes = 1 << 3,
|
|
Zoom = 1 << 4,
|
|
RenderStill = 1 << 5,
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|