diff options
Diffstat (limited to 'src/mbgl/style/expression/distance.cpp')
-rw-r--r-- | src/mbgl/style/expression/distance.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mbgl/style/expression/distance.cpp b/src/mbgl/style/expression/distance.cpp index 67a460b7d7..c4d0c7b56d 100644 --- a/src/mbgl/style/expression/distance.cpp +++ b/src/mbgl/style/expression/distance.cpp @@ -21,8 +21,8 @@ namespace mbgl { namespace { -const std::size_t MinPointsSize = 500; -const std::size_t MinLinePointsSize = 200; +const std::size_t MinPointsSize = 100; +const std::size_t MinLinePointsSize = 50; using BBox = std::array<double, 4>; const BBox DefaultBBox = BBox{std::numeric_limits<double>::infinity(), @@ -414,9 +414,9 @@ optional<Arguments> parseValue(const style::conversion::Convertible& value, styl } else if (*input == "NauticalMiles") { unit = mapbox::cheap_ruler::CheapRuler::Unit::NauticalMiles; } else if (*input == "Yards") { - unit = mapbox::cheap_ruler::CheapRuler::Unit::Kilometers; + unit = mapbox::cheap_ruler::CheapRuler::Unit::Yards; } else if (*input == "Feet") { - unit = mapbox::cheap_ruler::CheapRuler::Unit::Miles; + unit = mapbox::cheap_ruler::CheapRuler::Unit::Feet; } else if (*input == "Inches") { unit = mapbox::cheap_ruler::CheapRuler::Unit::Inches; } else { |