summaryrefslogtreecommitdiff
path: root/src/mbgl/style
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-03-20 13:14:00 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-03-20 13:14:00 +0100
commitf73dfc73f101e8023fe5719225cdec35c7e4a84b (patch)
treef1a3caedd2a60d860aaa4c8f2d017216e55a087c /src/mbgl/style
parent0cdf21c62d1f4ed8f54bd63b3f26459ef78a78d0 (diff)
downloadqtlocation-mapboxgl-f73dfc73f101e8023fe5719225cdec35c7e4a84b.tar.gz
make more things const and refs, and add mutexes
Diffstat (limited to 'src/mbgl/style')
-rw-r--r--src/mbgl/style/style_parser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/style/style_parser.cpp b/src/mbgl/style/style_parser.cpp
index f2bd8e6c88..acebf78dbb 100644
--- a/src/mbgl/style/style_parser.cpp
+++ b/src/mbgl/style/style_parser.cpp
@@ -1,6 +1,7 @@
#include <mbgl/style/style_source.hpp>
#include <mbgl/style/style_parser.hpp>
#include <mbgl/style/style_layer_group.hpp>
+#include <mbgl/map/annotation.hpp>
#include <mbgl/util/constants.hpp>
#include <mbgl/util/std.hpp>
#include <mbgl/util/vec.hpp>
@@ -32,7 +33,7 @@ void StyleParser::parse(JSVal document) {
// create point annotations layer
//
- std::string id = util::ANNOTATIONS_POINTS_LAYER_ID;
+ const std::string& id = AnnotationManager::layerID;
std::map<ClassID, ClassProperties> paints;
util::ptr<StyleLayer> annotations = std::make_shared<StyleLayer>(id, std::move(paints));