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 10:14:13 -0700 |
commit | 82cddb5af29d30181c1b61bab6183471456b6d2a (patch) | |
tree | c7be2112a484362f030980360dee4be6c7787ae1 /src | |
parent | b8522ba03aec5cc6159a9af26c5e6bed0a6f4f50 (diff) | |
download | qtlocation-mapboxgl-82cddb5af29d30181c1b61bab6183471456b6d2a.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); |