# `Macaw.Frame.Maps.Clusters`
[🔗](https://github.com/dcoai/macaw_frame/blob/v0.1.0/lib/macaw/frame/maps/clusters.ex#L1)

`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 `filter`s of the step's
rows by `count`. New in the second cut.

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

# `doc`

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

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

# `fixtures`

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

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

# `fragment`

```elixir
@spec fragment() :: map()
```

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

# `id`

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

The fragment's id in the catalog store.

# `kind`

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

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

# `namespace`

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

Its namespace (spec/13 §2).

# `parameters`

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

Its parameters (spec/13 §7.2).

# `slots`

```elixir
@spec slots() :: %{required(String.t()) =&gt; map()}
```

Its slot: `points`, a longitude, a latitude and the declared identity.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
