Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A high-performance map tile server powered by MBTiles files
JavaScript CSS Shell Other

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
assets
commands
controllers
examples
lib
models
servers
templates
test
views
.gitignore
.npmignore
LICENSE.md
README.md
UPGRADING.md
index.js
package.json

README.md

TileStream

A high performance tile server and simple web viewer for MBTiles files.

Features

  • MBTiles-based tile server
  • Minimal gallery view and map viewer for tiles
  • Support for MBTiles interaction using Wax

Requirements

  • TileStream client
    • Tested: Chrome 6+, Firefox 3+, IE8+
    • May work: Opera 11
  • TileStream server
    • Tested: Mac OS X 10.6, Ubuntu 10.10
    • Tested: node 0.4.7
    • Tested: npm v1.0.3
    • At least 613MB memory
    • May work: Older versions, other POSIX-compliant systems

Installation: Mac OS X 10.6

Install Xcode for Mac OS X.

Install node and npm. You may want to use nvm which can install and manage your node installation for you.

Download and unpack TileStream. Build & install:

git clone git://github.com/mapbox/tilestream.git
cd tilestream
npm install .

Start TileStream:

./index.js

TileStream should now be accessible from a browser at http://localhost:8888.

Installation: Ubuntu 10.10

Install build requirements:

sudo apt-get install curl build-essential libssl-dev libsqlite3-0 libsqlite3-dev

Install node and npm. You may want to use nvm which can install and manage your node installation for you.

Download and unpack TileStream. Build & install:

git clone git://github.com/mapbox/tilestream.git
cd tilestream
npm install .

If you already cloned the master repository then do:

cd tilestream
git checkout master-ndistro
./ndistro

Start TileStream:

./index.js

TileStream should now be accessible from a browser at http://localhost:8888.

Usage

MBTiles files should be placed in the tiles directory. Each tileset can be previewed at http://localhost:8888/map/[filename] where [filename] is the name of the tileset file without the .mbtiles extension.

Tileset filenames:

  • May contain letters (lower or upper case), numbers, underscores or dashes.

    world-light.mbtiles
    control_room.mbtiles
    PartyLikeIts1999.mbtiles
    
  • May not contain periods, spaces, non ASCII characters or other punctuation.

    World Light.mbtiles
    BlueWorld-1.0.mbtiles
    

To see the options available for use with TileStream, run

./index.js start --help

Tests

TileStream tests use Expresso.

npm install -g expresso
cd tilestream
npm test

Contributors

Something went wrong with that request. Please try again.