move style classes to MapData object and make thread safe

This commit is contained in:
Konstantin Käfer
2015-03-20 19:46:52 +01:00
parent 3d2dcbb6ef
commit d2faca1861
4 changed files with 80 additions and 27 deletions

View File

@@ -82,6 +82,7 @@ public:
StyleInfo = 1 << 0,
Debug = 1 << 1,
DefaultTransitionDuration = 1 << 2,
Classes = 1 << 3,
};
void triggerUpdate(Update = Update::Nothing);
@@ -251,8 +252,6 @@ private:
const std::unique_ptr<MapData> data;
std::vector<std::string> classes;
std::set<util::ptr<StyleSource>> activeSources;
std::atomic<UpdateType> updated;