gerardus
simplest mbtiles server
Last updated 5 years ago by stepankuzmin .
Repository · Original npm · Tarball · package.json
$ cnpm install gerardus 
SYNC missed versions from official npm registry.

Getting Started

Install using npm

npm install gerardus

Building from source

git clone git@bitbucket.org:mystand/gerardus.git
cd gerardus
npm install
npm run build

Usage

usage: gerardus [-h] [-v] [-c CONFIG] [-d DEFAULT_TILE] [--host HOST] [-l LOG]
                [-p PORT] [--pid PID] [-s SOCKET] [--verbose]
                [tiles [tiles ...]]

simplest mbtiles server

Positional arguments:
  tiles                 list of .mbtiles

Optional arguments:
  -h, --help            Show this help message and exit.
  -v, --version         Show program version number and exit.
  -c CONFIG, --config CONFIG
                        Load the configuration found in filename.
  -d DEFAULT_TILE, --default-tile DEFAULT_TILE
                        Image that will get the client if the requested tile 
                        is not found
  --force-tms           Force response as TMS (default false)
  --host HOST           Server hostname
  -l LOG, --log LOG     Log file (default gerardus.log)
  -p PORT, --port PORT  Port (default 8888)
  --pid PID             PID file
  -s SOCKET, --socket SOCKET
                        Unix socket to listen
  --verbose             Verbose output (default false)

Example 1

gerardus --verbose russia.mbtiles world.mbtiles

Example 2

config.yml:

default_tile: "default.png"
pid: "/var/tmp/gerardus.pid"
socket: "/var/tmp/http.sock"
tiles: ["russia.mbtiles", "world.mbtiles"]
gerardus --config config.yml

Note: passing additional arguments to application will rewrite configuration settings.

Example 3

  1. ./bin/gerardus --force-tms --allow-origin --verbose example/osm-bright-2.mbtiles
  2. cd example
  3. python -m SimpleHTTPServer 8000
  4. open http://localhost:8000

Help

gerardus -h

Current Tags

  • 0.0.21                                ...           latest (5 years ago)

20 Versions

  • 0.0.21                                ...           5 years ago
  • 0.0.20                                ...           6 years ago
  • 0.0.19                                ...           6 years ago
  • 0.0.18                                ...           6 years ago
  • 0.0.17                                ...           6 years ago
  • 0.0.16                                ...           6 years ago
  • 0.0.15                                ...           6 years ago
  • 0.0.14                                ...           6 years ago
  • 0.0.13                                ...           6 years ago
  • 0.0.12                                ...           6 years ago
  • 0.0.11                                ...           6 years ago
  • 0.0.10                                ...           6 years ago
  • 0.0.9                                ...           6 years ago
  • 0.0.8                                ...           6 years ago
  • 0.0.7                                ...           6 years ago
  • 0.0.6                                ...           6 years ago
  • 0.0.5                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (9)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |