diff options
author | Justin R. Miller <incanus@codesorcery.net> | 2015-07-09 08:54:44 -0700 |
---|---|---|
committer | Justin R. Miller <incanus@codesorcery.net> | 2015-07-09 08:55:12 -0700 |
commit | cd7c3ddb9c92e1c89d936c14d580152eeb137b2b (patch) | |
tree | 5fc950a533997837ba6c11803506b323c88b28f1 /src | |
parent | 1a3ae887868e9ecd6f0fd69add4b7b504d941b95 (diff) | |
download | qtlocation-mapboxgl-cd7c3ddb9c92e1c89d936c14d580152eeb137b2b.tar.gz |
fixes #1858: proper shape placement in style layers
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/map/map_context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/map/map_context.cpp b/src/mbgl/map/map_context.cpp index 5b1825bff2..aff323d3f6 100644 --- a/src/mbgl/map/map_context.cpp +++ b/src/mbgl/map/map_context.cpp @@ -206,7 +206,7 @@ void MapContext::updateAnnotationTiles(const std::unordered_set<TileID, TileID:: shapeLayer->type = (shapeStyle.is<LineProperties>() ? StyleLayerType::Line : StyleLayerType::Fill); // add to end of other shape layers just before (last) point layer - style->layers.emplace((style->layers.end() - 2), shapeLayer); + style->layers.emplace((style->layers.end() - 1), shapeLayer); // create shape bucket & connect to source util::ptr<StyleBucket> shapeBucket = std::make_shared<StyleBucket>(shapeLayer->type); |