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

`maps.map` (spec/13 §6.1): a clipped geographic frame of its projection, fitted with a
padding and a minimum span to the slot its `fit` parameter names, panning into the box
window, drawing nothing of its own until map layers (the `:layers` fragments of
`Macaw.Frame.Maps`) are stacked into it at its use site. Copied from the gallery's map
frames (`examples/lib/examples/charts/world_map.ex`, `day_night_gps.ex`,
`marathon.ex`): their geographic frame, its projection and the `surface` ocean.

A map has no legend of its own, so of §3's parameters it takes `title`, `description`,
`show_title` and `margin`; a stacked layer brings its legend.

    iex> Macaw.Frame.Maps.Map.id()
    "maps.map"

# `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): a map fitted to a few European cities, drawn as points.

# `fragment`

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

The fragment: the geographic frame, its fit and its pan.

# `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 §3, §6.1).

# `projections`

```elixir
@spec projections() :: [String.t(), ...]
```

The projection names a map's `projection` parameter takes.

# `slots`

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

Its slots: none of its own; a stacked layer brings its slot.

---

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