A very simple node.js server for mbtiles
Clone or download
Pull request Compare This branch is 13 commits ahead, 9 commits behind tobinbradley:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
country_extracts.json
country_extracts.tsv
package.json
server.js
starter.sh

README.md

mbtiles-server

This is a fork of Christopher Helm's original awesome mbtiles-server, which was extended by tobinbradley and a little extended again by ratrun. All credit should be flung at Christopher Helm and tobinbradley. The changes in this fork compared to Christopher Helm's original are:

  • The first path argument is the mbtiles file, so multiple mbtiles tile sets can be served with the same service.
  • Vector tiles are supported.
  • Some niceties on the return header (CORS, expiration, etc.).
  • The server provides the served vector tile sets in a JSON file.

To get it cranking, drop a mbtiles file in the server folder and:

npm install
node server.js

Requests look like this:

http://localhost:3000/mbtilesareas.json
http://localhost:3000/<mbtiles-name>/3/1/2.png.