# staticmaps v0.1.0 - API Reference

## Modules

- [StaticMaps](StaticMaps.md): Render a map to an image on the server.
- [StaticMaps.Marker](StaticMaps.Marker.md): A point marked on the map.
- [StaticMaps.Projection](StaticMaps.Projection.md): Web Mercator conversion between geographic coordinates and world pixels.
- [StaticMaps.TileGrid](StaticMaps.TileGrid.md): Works out which tiles cover a viewport and where each one is drawn.
- [StaticMaps.Viewport](StaticMaps.Viewport.md): A resolved view: the centre, zoom, size and scale of one rendered image.

- Tile sources
  - [StaticMaps.Source](StaticMaps.Source.md): A source of map tiles.
  - [StaticMaps.Source.HTTP](StaticMaps.Source.HTTP.md): A source that fetches each tile from a URL.
  - [StaticMaps.Source.OSM](StaticMaps.Source.OSM.md): OpenStreetMap's standard tile layer, from `tile.openstreetmap.org`.
  - [StaticMaps.Source.Template](StaticMaps.Source.Template.md): A source for any tile server with a URL template.

- Tile cache
  - [StaticMaps.TileCache](StaticMaps.TileCache.md): Where fetched tiles are kept between renders.
  - [StaticMaps.TileCache.ETS](StaticMaps.TileCache.ETS.md): The default tile cache: an ETS table in memory, lost on restart.

- Serving over HTTP
  - [StaticMaps.Plug](StaticMaps.Plug.md): Serves maps from signed URLs, for browsers and CDNs to cache.

- Errors
  - [StaticMaps.TileError](StaticMaps.TileError.md): One or more tiles a render needed could not be used.
  - [StaticMaps.UnavailableError](StaticMaps.UnavailableError.md): No source could render the map.

