arc
The great-circle route between two places on a region map, the shortest way over the earth.
arc

#Attributes
fromOne end: a coordinate written latitude first, or
#id naming a marker placed with at: in the same environment — from: #london. An anchored end follows its marker. Parametised and animatable.Can be written as shorthand:
arc:valuetoThe other end, in the same two forms.
colourThe arc's hue.
colourAlso written:
colorDefault
tealwidthStroke width in pixels.
Default
2opacityHow solid the stroke is,
0 to 1.Default
1labelRich inline label set at the arc's midpoint.
hiddenDeclared but not drawn. Animatable, so
hidden: true !cue.to{false}(at: 2) is the overlay's reveal.Default
false#Derived attributes
Computed while the element renders — read one with #id.name in attribute position or {{#id.name}} in prose, never set.
lengthThe great-circle length from
from to to in kilometres, on the mean earth sphere (radius 6371.0088 km); a dash until both ends resolve to places.#Allowed in
#Examples


region:world{
arc#route(from: 51.47, -0.46; to: 35.55, 139.78; label: {{round(#route.length, 0)}} km)
}

region:world{
cue.draw{
arc(from: 40.64, -73.78; to: 1.36, 103.99)
}(
in: 2
in-duration: 1200ms
)
}#Notes
- On a
mercatormap the London–Tokyo arc bends far north of the straight line between them. - Wrapped in a
cue.draw, the route draws itself along its length.