arc
The great-circle route between two places on a region map.
arc

#Attributes
fromOne end of the route.
Can be written as shorthand:
arc:valuetoThe other end of the route.
colourThe arc's colour.
paintAlso written:
colorDefault
tealwidthThe arc's stroke width in pixels.
Default
2opacityHow solid the stroke is.
Default
1labelA label set at the arc's midpoint.
hiddenDeclared but not drawn.
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.#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.