@eniromaps/tile-worker

Pulls work from queue and draws meta tiles

Usage no npm install needed!

<script type="module">
  import eniromapsTileWorker from 'https://cdn.skypack.dev/@eniromaps/tile-worker';
</script>

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 git@bitbucket.org: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'
})