@eniromaps/tile-worker
v1.2.1
Published
Pulls work from queue and draws meta tiles
Downloads
8
Readme
tile-worker
The basic building block for tile-workers, e.g nautical-tile-worker. Can be configured to render different types of tiles. Queue logic by kue. Image manipulation by sharp/libvips.
Install
From npm:
$ npm install --save @eniromaps/tile-worker
From source:
$ git clone [email protected]:eniro/tile-worker.git
$ cd tile-worker
$ npm install
Use
Start a tile worker that pulls 'nautical' jobs from a priority job queue backed by the redis instance at <REDIS_URL> and render tiles at <MAPSERVER_URL>:
const tileWorker = require('@eniromaps/tile-worker')
tileWorker({
redisUrl: <REDIS_URL>,
mapServerUrl: <MAPSERVER_URL>,
jobName: 'nautical'
})