A NodeJS vector tile server with a preview page. Originally a fork of mbtiles-server.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 797cf10 Apr 3, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public code refactor Nov 9, 2017
tiles-addsupportfor updates Sep 29, 2017
tiles updates Sep 29, 2017
.gitignore final update Apr 2, 2018
README.md Update README.md Apr 3, 2018
_config.js code refactor Nov 9, 2017
nginx-sites-available-sample.txt Update nginx-sites-available-sample.txt Aug 9, 2017
package.json final update Apr 2, 2018
preview-img.jpg Add files via upload Sep 29, 2017
preview-img2.jpg Add files via upload Sep 29, 2017
starter.sh Update starter.sh Aug 9, 2017
stats-final.png Add files via upload Apr 3, 2018
stats.png Add files via upload Apr 3, 2018
tileserver.js final update Apr 2, 2018

README.md

ovrdc-tileserver

THIS PROJECT IS NO LONGER ACTIVE. BELOW IS THE FINAL STATS SCREENSHOT.

This is fork of Tobin Bradley's mbtiles-server which is a fork of Christopher Helm's mbtiles-server - see below for Tobin Bradley's description. This server adds a tile preview page and server stats.

These results using loadtest are from the second smallest Digital Ocean droplet requesting one pbf file from an mbtiles file, proxied with NGINX. An average map takes around 30-70 requests to render. Is this good? Seems like it, especially for smaller municipal government apps, which is our domain.

 INFO Max time (s):        10
 INFO Concurrency level:   100
 INFO Agent:               keepalive
 INFO 
 INFO Completed requests:  10120
 INFO Total errors:        0
 INFO Total time:          10.000816574 s
 INFO Requests per second: 1012
 INFO Mean latency:        96.9 ms
 INFO 
 INFO Percentage of the requests served within a certain time
 INFO   50%      82 ms
 INFO   90%      123 ms
 INFO   95%      133 ms
 INFO   99%      480 ms
 INFO  100%      3220 ms (longest request)

This fork also uses some code from tilehut, another great implementation of an mbtiles server.

Add mbtiles to the tiles folder then start the server. All mbtiles will be served. It works with raster and vector tiles.

npm install
node tileserver.js

Requests look like this:

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