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

Copy Markdown View Source

maps.clusters (spec/13 §7.2), a second-cut map layer: points projected and grouped within radius pixels by the point_cluster spatial step (spec/04 §5.3's cluster, Macaw.Frame.Transforms.PointCluster) at the view's zoom, so the clusters re-run on every view change. A cluster of more than one point is a circle sized by its count through a sqrt scale with a text of the count over it; a lone point is drawn as maps.points draws one, a small circle. The two are macaw_data filters of the step's rows by count. New in the second cut.

iex> Macaw.Frame.Maps.Clusters.id()
"maps.clusters"

Summary

Functions

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

Its fixture (spec/14 §1): sightings gathered about the cities, clustered.

The fragment: projection and point_cluster under circles for clusters and lone points.

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: points, a longitude, a latitude and the declared 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): sightings gathered about the cities, clustered.

fragment()

@spec fragment() :: map()

The fragment: projection and point_cluster under circles for clusters and lone points.

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: points, a longitude, a latitude and the declared identity.