How to use tileserver-gl-light - 2 common examples

To help you get started, we’ve selected a few tileserver-gl-light examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github CSUFTitanRover / TitanRover2018 / homebase / servers / tileserver / main.js View on Github external
.option('verbose', {
    abbr: 'V',
    flag: true,
    help: 'More verbose output'
  })
  .option('version', {
    abbr: 'v',
    flag: true,
    help: 'Version info',
    callback: function () {
      return packageJson.name + ' v' + packageJson.version;
    }
  }).parse();


console.log('Starting ' + packageJson.name + ' v' + packageJson.version);

var startServer = function (configPath, config) {
  return require('tileserver-gl-light/src/server.js')({
    configPath: configPath,
    config: config,
    bind: opts.bind,
    port: opts.port,
    cors: opts.cors
  });
};

var startWithMBTiles = function (mbtilesFile) {
  console.log('Automatically creating config file for ' + mbtilesFile);

  mbtilesFile = path.resolve(process.cwd(), mbtilesFile);
github CSUFTitanRover / TitanRover2018 / homebase / servers / tileserver / main.js View on Github external
callback: function () {
      return packageJson.name + ' v' + packageJson.version;
    }
  }).parse();

tileserver-gl-light

Map tile server for JSON GL styles - serving vector tiles

BSD-2-Clause
Latest version published 2 months ago

Package Health Score

75 / 100
Full package analysis

Popular tileserver-gl-light functions