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

Copy Markdown View Source

maps.points (spec/13 §6.3), a map layer: each row's longitude and latitude projected through the map's projection (a clipped or malformed one keeps its row with no position, so nothing draws for it), a circle sized through a sqrt size scale when size is bound, colored by category through points.color with its legend inside the map's bottom left, and a pick writing the row's declared identity. Copied from the gallery's marathon field and day/night GPS satellites (examples/lib/examples/charts/marathon/field.ex, day_night_gps.ex).

iex> Macaw.Frame.Maps.Points.id()
"maps.points"

Summary

Functions

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

Its fixture (spec/14 §1): a map fitted to European cities, sized by population.

The fragment: a projection step and a circle layer, with their scales and legend.

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 §6.3).

Its slot: points, a longitude and a latitude, and optional category, size, label and 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 map fitted to European cities, sized by population.

fragment()

@spec fragment() :: map()

The fragment: a projection step and a circle layer, with their scales and legend.

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 §6.3).

slots()

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

Its slot: points, a longitude and a latitude, and optional category, size, label and identity.