Revert "scale dashes by line-gap-width if present"
This reverts commit 4791bac675.
This commit is contained in:
@@ -183,16 +183,8 @@ void StyleLayer::applyStyleProperties<LineProperties>(const float z, const times
|
||||
applyStyleProperty(PropertyKey::LineDashArray, line.dash_array, z, now);
|
||||
applyStyleProperty(PropertyKey::LineImage, line.image, z, now);
|
||||
|
||||
// scale dash width by line-gap-width if present
|
||||
applyStyleProperty(PropertyKey::LineGapWidth, line.dash_line_width, std::floor(z), now + 10000);
|
||||
if (line.dash_line_width <= 0) {
|
||||
// otherwise scale by line-width
|
||||
applyStyleProperty(PropertyKey::LineWidth, line.dash_line_width, std::floor(z), now + 10000);
|
||||
if (line.dash_line_width <= 0) {
|
||||
// otherwise scale by default line-width value
|
||||
line.dash_line_width = line.width;
|
||||
}
|
||||
}
|
||||
// for scaling dasharrays
|
||||
applyStyleProperty(PropertyKey::LineWidth, line.dash_line_width, std::floor(z), now + 10000);
|
||||
}
|
||||
|
||||
template <>
|
||||
|
||||
@@ -38,7 +38,7 @@ struct LineProperties {
|
||||
float gap_width = 0;
|
||||
float blur = 0;
|
||||
std::vector<float> dash_array;
|
||||
float dash_line_width = 0;
|
||||
float dash_line_width = 1;
|
||||
std::string image;
|
||||
|
||||
inline bool isVisible() const {
|
||||
|
||||
Reference in New Issue
Block a user