0.0.21 • Published 9 years ago
gerardus v0.0.21
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
./bin/gerardus --force-tms --allow-origin --verbose example/osm-bright-2.mbtiles
cd example
python -m SimpleHTTPServer 8000
open http://localhost:8000
Help
gerardus -h
0.0.21
9 years ago
0.0.20
9 years ago
0.0.19
9 years ago
0.0.18
9 years ago
0.0.17
10 years ago
0.0.16
10 years ago
0.0.15
10 years ago
0.0.14
10 years ago
0.0.13
10 years ago
0.0.12
10 years ago
0.0.11
10 years ago
0.0.10
10 years ago
0.0.9
10 years ago
0.0.8
10 years ago
0.0.7
10 years ago
0.0.6
10 years ago
0.0.5
10 years ago
0.0.4
10 years ago
0.0.3
10 years ago
0.0.2
10 years ago