Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@eniromaps/tile-workers

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eniromaps/tile-workers

Workers for live rendering and seeding

  • 1.1.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

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:

  • Java 8
  • Vips
  • PngQuant

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

FAQs

Package last updated on 10 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc