1.1.3 • Published 7 years ago

@eniromaps/tile-workers v1.1.3

Weekly downloads
-
License
-
Repository
-
Last release
7 years ago

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

NameTypeDescriptionDefault valueRequired
dataStringPath to data dir-yes
graphicsStringPath to graphis dir-yes
layoutStringPath to layout file-yes
layerStringMap layer to render-yes
redisStringRedis URLredis://localhost:6379No
portIntegerMapserver port4567No
threadsIntegerNumber of mapserver threadsNo
quantizeIntegerNumber of colors128No
tilesizeIntegerTile size in pixels256No
dprDecimalDevice pixel ratio1.0No
linescaleDecimalLine scale1.0No
debugBoolShould debug info be drawn on mapfalseNo
debugclippingBoolShould debug clipping be drawn on mapfalseNo

Additional options for seed-worker

NameTypeDescriptionDefault valueRequired
aws_bucketStringaws s3 bucket name-yes
aws_keyStringaws api key-yes
aws_bucketStringaws api secret-yes
1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago