API Reference staticmaps v#0.1.0

Copy Markdown View Source

Modules

Render a map to an image on the server.

A point marked on the map.

Serves maps from signed URLs, for browsers and CDNs to cache.

Web Mercator conversion between geographic coordinates and world pixels.

A source of map tiles.

A source that fetches each tile from a URL.

OpenStreetMap's standard tile layer, from tile.openstreetmap.org.

A source for any tile server with a URL template.

Where fetched tiles are kept between renders.

The default tile cache: an ETS table in memory, lost on restart.

One or more tiles a render needed could not be used.

Works out which tiles cover a viewport and where each one is drawn.

No source could render the map.

A resolved view: the centre, zoom, size and scale of one rendered image.