Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.01 KB

README.md

File metadata and controls

42 lines (30 loc) · 1.01 KB

Freemap Tileserver

Building and installing

cargo install --path .

Command options

Use -h or --help to get description of all available options:

Usage: freemap-tileserver [OPTIONS] --source <SOURCE>

Options:
  -l, --listen-address <LISTEN_ADDRESS>
          Address to listen on [default: 127.0.0.1:3003]
  -s, --source <SOURCE>
          Source file, can be specified multiple times (order matters)
  -d, --default-background <DEFAULT_BACKGROUND>
          Default background color [default: ffffff]
  -s, --skip-fallback-bounds-computation
          Skip computing bounds if missing
  -h, --help
          Print help
  -V, --version
          Print version

Sources

Generate sources with freemap-tiler.

URL

URL uses slippy map schema `/{zoom}/{x}/{y}[.jpg]

Query parameters:

  • bg=RRGGBB - Background color. Default is white.
  • fallback_missing - Fallback missing tile to empty tile of background color. Default is to return 404.