Macaw.Frame.Maps.Route (macaw_frame v0.1.0)

Copy Markdown View Source

maps.route (spec/13 §7.2), a second-cut map layer: a track's positions projected (projection(fields: [longitude, latitude])) and drawn as one line in time order, broken where its readings are further apart than their continuity (spec/04 §6: a line over a projected track is placed by the slot's window field t and breaks on its longitude's and latitude's continuity), with its newest reading as a circle (head). A track with a declared identity draws one line per identity. A route is maps.points' slot with a line instead (spec/13 §6.3); its positions are its longitude and latitude roles, as maps.points' and the map's fit read. New in the second cut.

iex> Macaw.Frame.Maps.Route.id()
"maps.route"

Summary

Functions

What it draws, for a person and a builder's library.

Its fixture (spec/14 §1): a run along the Thames with a gap where the signal dropped.

The fragment: projection under a line and, at the newest reading, a circle.

The fragment's id in the catalog store.

What the fragment is: a whole design, or layers placed in one.

Its namespace (spec/13 §2).

Its parameters (spec/13 §7.2).

Its slot: track, a longitude, a latitude, the window field t and an optional identity.

Functions

doc()

@spec doc() :: String.t()

What it draws, for a person and a builder's library.

fixtures()

@spec fixtures() :: [map()]

Its fixture (spec/14 §1): a run along the Thames with a gap where the signal dropped.

fragment()

@spec fragment() :: map()

The fragment: projection under a line and, at the newest reading, a circle.

id()

@spec id() :: String.t()

The fragment's id in the catalog store.

kind()

@spec kind() :: :design | :layers

What the fragment is: a whole design, or layers placed in one.

namespace()

@spec namespace() :: :charts | :maps | :diagrams

Its namespace (spec/13 §2).

parameters()

@spec parameters() :: [{String.t(), map()}]

Its parameters (spec/13 §7.2).

slots()

@spec slots() :: %{required(String.t()) => map()}

Its slot: track, a longitude, a latitude, the window field t and an optional identity.