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

Copy Markdown View Source

maps.density (spec/13 §6.5), a map layer: the slot's points projected, then the spatial density_2d step's rings (weighted by weight when it is bound), each filled by its level through density.color, a sequential scale. Copied from the gallery's contour and hexbin designs (examples/lib/examples/charts/contour_plot.ex).

iex> Macaw.Frame.Maps.Density.id()
"maps.density"

Summary

Functions

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

Its fixture (spec/14 §1): the sightings' density, weighted.

The fragment: projection, then density, 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.5).

Its slot: points, a longitude and a latitude, and an optional weight.

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): the sightings' density, weighted.

fragment()

@spec fragment() :: map()

The fragment: projection, then density, 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.5).

slots()

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

Its slot: points, a longitude and a latitude, and an optional weight.