From f9b36f9f5b4cf09e08c2ff0181b339b53e8d0014 Mon Sep 17 00:00:00 2001 From: Chris Loer Date: Fri, 6 Jul 2018 13:09:15 -0700 Subject: [core] Add `symbol-placement: line-center` - Remove unused/vestigial 'maxCameraDistance' - Create a single collision circle for line labels that are less than half the width of a collision circle --- src/mbgl/text/get_anchors.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/mbgl/text/get_anchors.hpp') diff --git a/src/mbgl/text/get_anchors.hpp b/src/mbgl/text/get_anchors.hpp index 48f3013093..8fd22051a4 100644 --- a/src/mbgl/text/get_anchors.hpp +++ b/src/mbgl/text/get_anchors.hpp @@ -17,4 +17,14 @@ Anchors getAnchors(const GeometryCoordinates& line, const float boxScale, const float overscaling); +optional getCenterAnchor(const GeometryCoordinates& line, + const float maxAngle, + const float textLeft, + const float textRight, + const float iconLeft, + const float iconRight, + const float glyphSize, + const float boxScale); + + } // namespace mbgl -- cgit v1.2.1