Coder Social home page Coder Social logo

node-tileserver's Introduction

tileserver

I need a better name.

Upgrading

If underlying binary dependencies (i.e. Mapnik) have changed, set NPM_REBUILD=1 to trigger an npm rebuild.

Seeding

Uses Redis Cloud's free plan to facilitate queueing.

heroku addons:add rediscloud:20
heroku config:set AWS_ACCESS_KEY_ID=<redacted> \
                  AWS_SECRET_ACCESS_KEY=<redacted> \
                  S3_BUCKET=<redacted> \
                  PATH_PREFIX=prefix \
                  REDIS_URL=$(heroku config:get REDISCLOUD_URL)
heroku run 'seed -b="-123.640 36.791 -121.025 38.719" -z 10 -Z 14'

heroku ps:scale worker=1

Environment Variables

  • SCALE - Rendering scale. Defaults to 1.
  • METATILE - Metatile size (how many tiles on an edge to render at a time). Defaults to 4.
  • BUFFER_SIZE - Map buffer size. Defaults to 128. May be overridden in a Carto map element (??).
  • TILE_SIZE - Tile height/width. Defaults to 256.
  • AWS_DEFAULT_REGION - Default AWS region to use when making calls that require one. Defaults to us-east-1.
  • ACCESS_KEY_ID - AWS access key. Required when seeding.
  • SECRET_ACCESS_KEY - AWS secret access key. Required when seeding.
  • S3_BUCKET - S3 bucket name. Required when seeding.
  • PATH_PREFIX - Optional path prefix to use when uploading seeded tiles. Defaults to ``.

node-tileserver's People

Contributors

mojodna avatar

Stargazers

Le Roux Bodenstein avatar Kyros Koh avatar

Watchers

 avatar Kai avatar Chris Henrick avatar Eric Brelsford avatar Eric Rodenbeck avatar Sean Connelley avatar Logan Williams avatar Emily Hobson avatar James Cloos avatar Alan McConchie avatar Dan Rademacher avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

kyroskoh

node-tileserver's Issues

Pending upload account is incorrect

It takes the first entry in http.globalAgent.sockets, which may be for deleting SQS messages.

Something like this is more correct:

var getActiveRequestCount = function(agent) {
  return Object.keys(agent.sockets).reduce(function(previousValue, key) {
    return previousValue + agent.sockets[key].length;
  }, 0);
};

var getQueuedRequestCount = function(agent) {
  return Object.keys(agent.requests).reduce(function(previousValue, key) {
    return previousValue + agent.requests[key].length;
  }, 0);
};

Incorrect tile list given seed extent

It appears to only be seeding tiles that are fully contained by the desired extent (though it might be tiles in the rightmost column...).

Meta tile calculation also throws this off, as tiles will be skipped if their meta tile is outside the requested extent.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.