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

`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"

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

# `fragment`

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

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

# `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 §6.5).

# `slots`

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

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

---

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