diff options
Diffstat (limited to 'src/mbgl/renderer/buckets/line_bucket.cpp')
-rw-r--r-- | src/mbgl/renderer/buckets/line_bucket.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mbgl/renderer/buckets/line_bucket.cpp b/src/mbgl/renderer/buckets/line_bucket.cpp index fdb110bc9d..55593aaa66 100644 --- a/src/mbgl/renderer/buckets/line_bucket.cpp +++ b/src/mbgl/renderer/buckets/line_bucket.cpp @@ -34,7 +34,7 @@ void LineBucket::addFeature(const GeometryTileFeature& feature, std::size_t index, const CanonicalTileID& canonical) { for (auto& line : geometryCollection) { - addGeometry(line, feature); + addGeometry(line, feature, canonical); } for (auto& pair : paintPropertyBinders) { @@ -97,7 +97,9 @@ private: double total; }; -void LineBucket::addGeometry(const GeometryCoordinates& coordinates, const GeometryTileFeature& feature) { +void LineBucket::addGeometry(const GeometryCoordinates& coordinates, + const GeometryTileFeature& feature, + const CanonicalTileID& canonical) { const FeatureType type = feature.getType(); const std::size_t len = [&coordinates] { std::size_t l = coordinates.size(); @@ -137,7 +139,7 @@ void LineBucket::addGeometry(const GeometryCoordinates& coordinates, const Geome *numericValue<double>(clip_start_it->second), *numericValue<double>(clip_end_it->second), total_length}; } - const LineJoinType joinType = layout.evaluate<LineJoin>(zoom, feature); + const LineJoinType joinType = layout.evaluate<LineJoin>(zoom, feature, canonical); const float miterLimit = joinType == LineJoinType::Bevel ? 1.05f : float(layout.get<LineMiterLimit>()); |