Skip to main content

label_anchors

Function label_anchors 

Source
pub fn label_anchors(
    labels: &[(RouteLabelId, FracVal)],
    geometry: &RouteGeometry,
) -> Vec<(RouteLabelId, Pos2)>
Expand description

Each label’s current world position, captured before a relayout so reanchored can put it back where it was instead of letting it slide with the arc length.