diff options
author | Justin R. Miller <incanus@users.noreply.github.com> | 2015-07-09 10:11:52 -0700 |
---|---|---|
committer | Justin R. Miller <incanus@users.noreply.github.com> | 2015-07-09 10:11:52 -0700 |
commit | f15fb9f8e70259f9c9c307eb2cb19697eb7be87c (patch) | |
tree | 582c96fc91630b4ab68668e65d4209fcaccd8b43 | |
parent | 7892c50bccde7651d1ac4f2ea379bee1c2902cb7 (diff) | |
parent | cd7c3ddb9c92e1c89d936c14d580152eeb137b2b (diff) | |
download | qtlocation-mapboxgl-f15fb9f8e70259f9c9c307eb2cb19697eb7be87c.tar.gz |
Merge pull request #1866 from mapbox/1858-fix-shape-order
fixes #1858: proper shape placement in style layers
-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); |