A very simple server ready to serve your mbtiles file.
By default a mapbox-gl-js interface is used.
Note: This is more a demo on how to use the very simple mbtiles format in Go than a robust server.
If you want a more advanced server still in Go you should look at consbio/mbtileserver
And if you need to support old browser and generate raster tile from your vector tiles you should look at tileserverGL (NodeJS based)
run :
$ ./set_go_path.sh
export your GOPATH as displayed, then :
$ go build
You need an mbtiles file and the associated style.
The easy way is to download vectortile from openmaptile : download andorra for exemple.
You can also generate your own vector tile with openmaptile or tippecanoe
If you want to use Open Sans font are ready to use as pbf : just decompress "demo_public/fonts/open sans ressource.7z".
Look at demo_public/fonts/Readme.md to see how to generate your own.
Put your mbtiles file somewhere and run :
$ ./gomtileserver -mbtiles path/to/your/file.mbtiles
By default style osm-bright is used. To change it you need to change the path "style" in demo_public/index.html
For ease gomtileserver transform style in demo_public/style_src/bright and generate one with current server IP (by changing the {{{HOST}}} value).
TODO: do it better or allow to overwrite the HOST