Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 881 Bytes

README.rst

File metadata and controls

41 lines (27 loc) · 881 Bytes

mbtilesrv

Simple mbtiles file server written in Go. Also generates a simple html map with modestmaps or leaflet in addition to serving the tiles from the mbtiles sqlite database.

Installation

Having go installed, simply build with the go tool and run it with:

go get -u github.com/tajtiattila/go-mbtiles/cmd/mbtilesrv
$GOPATH/bin/mbtilesrv map.mbtiles

Features

  • Tile server
  • Serve map html
  • Detects file changes and reloads database if necessary
  • UTFGrid and TileJSON support

External dependencies

Mbtilesrv depends on go-sqlite3 and freetype-go. Install them with go get:

go get github.com/mattn/go-sqlite3
go get github.com/golang/freetype

Todo

  • Serve map (POI) data
  • Search?