1.0.5 • Published 1 year ago

mbtiles-serve v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

mbtiles-serve

Fast HTTP server serving map tiles directly from a mbtiles file. It is built on the mapbox node-mbtiles library without any other dependencies (apart cli meow).

Installation

yarn add mbtiles-serve
# or
npm install mbtiles-serve

Usage

mbtiles-serve norway.mbtiles

Once is server running you can request tiles from http://localhost:8080?x=0&y=0&z=0 For your convinience there is a simple Leaflet map server at the root so you can easily preview map tiles. It can be found at http://localhost:8080

Development

PRs are more than welcome. Start by cloning your fork and installing all the dependencies with

yarn

You can run it directly from the repo by

yarn start input.mbtiles --port 3000

Once you are happy with you changes you can try it globaly with

npm global install .

Publishing

npx np
1.0.5

1 year ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago