@versatiles/server

1.4.0 • Public • Published

Code Coverage GitHub Workflow Status)

VersaTiles - Server

A Node.js server for VersaTiles containers.

Install globally

npm i -g @versatiles/server

Run

versatiles-server --help

This will show you how to use the server with all options and arguments.

For example:

versatiles-server planet.versatiles

Options

$ versatiles-server
Usage: versatiles-server [options] <source>

Simple VersaTiles server

Arguments:
  source                   VersaTiles container, can be a URL or filename of a
                           "*.versatiles" file

Options:
  -b, --base-url <url>     Base URL for the server (default:
                           "http://localhost:<port>/")
  -c, --compress           Reduces traffic by recompressing data, but responses
                           take longer. Perfect if behind CDN.
  -h, --host <hostnameip>  Hostname or IP to bind the server to (default:
                           "0.0.0.0")
  -n, --no-cache           disable cache and serve static files directly from
                           disc
  -o, --open               Open map in web browser
  -p, --port <port>        Port to bind the server to (default: 8080)
  -q, --quiet              be quiet
  -s, --static <folder>    Path to a folder with static files
  -t, --tms                Use TMS tile order (flip y axis)
  -v, --verbose            be verbose
  --help                   display help for command

License

Unlicense

Package Sidebar

Install

npm i @versatiles/server

Weekly Downloads

4

Version

1.4.0

License

Unlicense

Unpacked Size

1.44 MB

Total Files

800

Last publish

Collaborators

  • michaelkreil
  • yetzt