summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/generate-style-code.js5
-rw-r--r--src/mbgl/style/layers/line_layer_properties.hpp2
2 files changed, 6 insertions, 1 deletions
diff --git a/scripts/generate-style-code.js b/scripts/generate-style-code.js
index 0f2dcdc42c..6379598446 100644
--- a/scripts/generate-style-code.js
+++ b/scripts/generate-style-code.js
@@ -46,6 +46,11 @@ global.propertyType = function (property) {
}
global.defaultValue = function (property) {
+ // https://github.com/mapbox/mapbox-gl-native/issues/5258
+ if (property.name === 'line-round-limit') {
+ return 1;
+ }
+
switch (property.type) {
case 'number':
return property.default;
diff --git a/src/mbgl/style/layers/line_layer_properties.hpp b/src/mbgl/style/layers/line_layer_properties.hpp
index e0c63b516b..01a8534222 100644
--- a/src/mbgl/style/layers/line_layer_properties.hpp
+++ b/src/mbgl/style/layers/line_layer_properties.hpp
@@ -20,7 +20,7 @@ public:
LayoutProperty<LineCapType> lineCap { LineCapType::Butt };
LayoutProperty<LineJoinType> lineJoin { LineJoinType::Miter };
LayoutProperty<float> lineMiterLimit { 2 };
- LayoutProperty<float> lineRoundLimit { 1.05 };
+ LayoutProperty<float> lineRoundLimit { 1 };
};
class LinePaintProperties {