summaryrefslogtreecommitdiff
path: root/include/llmr/style/style.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-06-27 15:57:47 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-06-27 15:57:47 +0200
commit38d9cd0d4f044090d417be35bf1771380472537c (patch)
treedd92a4f0a1b7c2ebb7563f8d6ccb0a54465815c8 /include/llmr/style/style.hpp
parente989478b27598cfac60a0ee20d1d5cef71d8accb (diff)
downloadqtlocation-mapboxgl-38d9cd0d4f044090d417be35bf1771380472537c.tar.gz
use class ids rather than names for storing styles
Diffstat (limited to 'include/llmr/style/style.hpp')
-rw-r--r--include/llmr/style/style.hpp3
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;