https://github.com/ovrdc/tileserver
A NodeJS vector tile server with a preview page. Originally a fork of mbtiles-server.
https://github.com/ovrdc/tileserver
gis mapbox-gl mapping nodejs raster tileserver vector-tiles
Last synced: 4 months ago
JSON representation
A NodeJS vector tile server with a preview page. Originally a fork of mbtiles-server.
- Host: GitHub
- URL: https://github.com/ovrdc/tileserver
- Owner: ovrdc
- Created: 2017-08-09T15:48:54.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-03T18:49:14.000Z (about 8 years ago)
- Last Synced: 2024-10-28T03:40:13.374Z (over 1 year ago)
- Topics: gis, mapbox-gl, mapping, nodejs, raster, tileserver, vector-tiles
- Language: HTML
- Homepage:
- Size: 5.72 MB
- Stars: 9
- Watchers: 7
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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](https://github.com/chelm/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.
``` bash
npm install
node tileserver.js
```
Requests look like this:
``` text
http://localhost:3000//3/1/2.png.
```