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

Copy Markdown View Source

maps.contour (spec/13 §6.6), a map layer: the contour step's rings over a grid of values spanning bounds ([west, south, east, north]), answered as geometries in degrees and projected through the map's projection (projection(field: "geometry")), each filled by its threshold through contour.color, a sequential scale, with its titled legend outside the map's right. Copied from the gallery's contour plot (examples/lib/examples/charts/contour_plot.ex).

iex> Macaw.Frame.Maps.Contour.id()
"maps.contour"

Summary

Functions

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

Its fixture (spec/14 §1): two hills of a 24 × 16 grid over central Europe, the cities over it.

The fragment: contour, then projection, under one path layer.

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.6).

Its slot: grid, a value per cell in row-major order.

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): two hills of a 24 × 16 grid over central Europe, the cities over it.

fragment()

@spec fragment() :: map()

The fragment: contour, then projection, under one path layer.

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.6).

slots()

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

Its slot: grid, a value per cell in row-major order.