diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-06-27 15:57:47 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-06-27 15:57:47 +0200 |
commit | 38d9cd0d4f044090d417be35bf1771380472537c (patch) | |
tree | dd92a4f0a1b7c2ebb7563f8d6ccb0a54465815c8 /include/llmr | |
parent | e989478b27598cfac60a0ee20d1d5cef71d8accb (diff) | |
download | qtlocation-mapboxgl-38d9cd0d4f044090d417be35bf1771380472537c.tar.gz |
use class ids rather than names for storing styles
Diffstat (limited to 'include/llmr')
-rw-r--r-- | include/llmr/style/style.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llmr/style/style.hpp b/include/llmr/style/style.hpp index 73ad6d6bd2..fd5f7e2226 100644 --- a/include/llmr/style/style.hpp +++ b/include/llmr/style/style.hpp @@ -8,6 +8,7 @@ #include <llmr/geometry/sprite_atlas.hpp> #include <llmr/util/transition.hpp> #include <llmr/util/uv.hpp> +#include <llmr/style/class_dictionary.hpp> #include <map> #include <unordered_map> @@ -38,7 +39,7 @@ public: public: std::string id; StyleBucket::Ptr bucket; - std::unordered_map<std::string, ClassProperties> styles; + std::map<ClassID, ClassProperties> styles; StyleProperties style; std::unique_ptr<RasterizeProperties> rasterize; std::shared_ptr<StyleLayerGroup> layers; |