1.6.1 • Published 4 months ago

@versatiles/server v1.6.1

Weekly downloads
-
License
Unlicense
Repository
github
Last release
4 months ago

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")
  -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

Dependency Graph

flowchart TB

subgraph 0["src"]
1["index.ts"]
subgraph 2["lib"]
3["log.ts"]
4["server.ts"]
5["file.ts"]
6["mime_types.ts"]
7["layer.ts"]
8["style.ts"]
9["response.ts"]
A["compressors.ts"]
B["types.ts"]
end
end
1-->3
1-->4
4-->5
4-->7
4-->3
4-->9
5-->6
6-->3
7-->8
9-->A
9-->3

style 0 fill-opacity:0.2
style 2 fill-opacity:0.2

License

Unlicense

1.6.1

4 months ago

1.6.0

5 months ago

1.5.0

8 months ago

1.4.1

10 months ago

1.4.0

1 year ago

1.3.1

1 year ago

1.2.0

2 years ago

1.3.0

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago