JSPM

  • Created
  • Published
  • Downloads 92
  • Score
    100M100P100Q74306F
  • License MIT

Provides a compatible WMTS Tile Server from MBTiles.

Package Exports

  • mbtiles-server

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mbtiles-server) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

MBTiles Server

Build Status CircleCI Coverage Status npm version MIT licensed

Provides a compatible WMTS Tile Server from MBTiles.

Install

$ npm install --save mbtiles-servers

Quickstart

$ npm start

MBTiles Server

  uri:           /Users/mac/mbtiles
  protocol:      http
  port:          5000
  domain:        localhost
  verbose:       true

Listening on PORT 5000

CLI

$ npm install -g mbtiles-server
$ mbtiles-server --verbose ~/mbtiles

WMTS

The goal of providing a WMTS enabled service is to be performance oriented and scalable. Therefore, servers must be able to return tiles quickly. A good way to achieve that is to use locally stored pre-rendered tiles that will not require any image manipulation or geo-processing.

start

Start Server

Parameters

  • uri [string] URI file path (optional, default ~/mbtiles)
  • options [string] Server Options
    • options.protocol [string] URL Protocol (optional, default 'http')
    • options.domain [string] URL Domain (optional, default 'localhost')
    • options.port [string] URL Port (optional, default 5000)
    • options.verbose [string] Verbose output (optional, default false)

Examples

server.start('~/mbtiles', {port: 5000, verbose: true})

Returns void System output for logs

Changelog

1.3.0 - 2017-01-10

  • Major refactoring
  • Improve CLI using meow
  • Update dependencies (including mbtiles-offline)

1.2.0 - 2016-12-5

  • Add Metadata in utils
  • Replace dev dependencies to Jest

1.1.1 - 2016-11-03

  • Add default export for Typescript

1.1.0 - 2016-11-01

  • Add MBTiles Metadata route

1.0.1 - 2016-10-31

  • Add WMTS library
  • First functional release

0.1.0 - 2016-10-26

  • Project initialized