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

Copy Markdown View Source

maps.tiles (spec/13 §6.2), a map layer: the tile basemap, a tiles layer (spec/04 §4.16) beneath every other layer, its tiles drawn from the proxy route it declares and its attribution in the plot's corner. It has no default URL: the provider and its usage policy are the host's, so url and attribution are required. A map whose projection is not tile-aligned refuses it at the layer. Copied from the gallery's marathon basemap (examples/lib/examples/charts/marathon.ex).

iex> Macaw.Frame.Maps.Tiles.id()
"maps.tiles"

Summary

Functions

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

Its fixture (spec/14 §1): a Mercator map of the cities over an example provider's tiles.

The fragment: one tiles 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.2).

Its slots: none.

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): a Mercator map of the cities over an example provider's tiles.

fragment()

@spec fragment() :: map()

The fragment: one tiles 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.2).

slots()

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

Its slots: none.