@eniromaps/tile-workers

1.1.3 • Public • Published

tile-workers

This project contains workers for both live rendering and seeding of map tiles.

Prerequisites

The following third-party software are required and must be installed for the tile workers to function:

Install

$ npm install -g @eniromaps/tile-workers

Examples

Start a live rendering worker for nautical tiles:

$ live-worker \
     --layer nautical \
     --data /data/nautical \
     --graphics /data/graphics/nautical \
     --layout /data/layout/wcm_nautical_layout.xml

Start a live rendering worker for retina map tiles:

$ live-worker \
     --layer map2x \
     --data /data/map \
     --graphics /data/graphics/map2x \
     --layout /data/layout/wcm_layout.xml \
     --dpr 2 \
     --linescale 0.75 \
     --tilesize 512

Start a worker for seeding of nautical tiles:

$ seed-worker \
     --layer nautical
     --data /data/nautical \
     --graphics /data/graphics/nautical \
     --layout /data/layout/wcm_nautical_layout.xml \
     --aws_bucket <aws_bucket> \
     --aws_key <aws_key> \
     --aws_secret <aws_secret>

Options

Name Type Description Default value Required
data String Path to data dir - yes
graphics String Path to graphis dir - yes
layout String Path to layout file - yes
layer String Map layer to render - yes
redis String Redis URL redis://localhost:6379 No
port Integer Mapserver port 4567 No
threads Integer Number of mapserver threads No
quantize Integer Number of colors 128 No
tilesize Integer Tile size in pixels 256 No
dpr Decimal Device pixel ratio 1.0 No
linescale Decimal Line scale 1.0 No
debug Bool Should debug info be drawn on map false No
debugclipping Bool Should debug clipping be drawn on map false No

Additional options for seed-worker

Name Type Description Default value Required
aws_bucket String aws s3 bucket name - yes
aws_key String aws api key - yes
aws_bucket String aws api secret - yes

Readme

Keywords

none

Package Sidebar

Install

npm i @eniromaps/tile-workers

Weekly Downloads

1

Version

1.1.3

License

none

Last publish

Collaborators

  • bodaniel
  • davvo
  • maps