Skip to content

Commit

Permalink
Update READMEs and descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
petrsloup committed Aug 25, 2016
1 parent 23c2aa5 commit ff9d5a8
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
[![Build Status](https://travis-ci.org/klokantech/tileserver-gl.svg?branch=master)](https://travis-ci.org/klokantech/tileserver-gl)
[![Docker Hub](https://img.shields.io/badge/docker-hub-blue.svg)](https://hub.docker.com/r/klokantech/tileserver-gl/)

Vector and raster maps with GL styles. Map tile server for Mapbox Android, iOS, GL JS, Leaflet, OpenLayers, GIS via WMTS, etc. Server side rendering by Mapbox GL Native.

## Quickstart
Use `npm install -g tileserver-gl` to install the package from npm.

Then you can simply run `tileserver-gl zurich_switzerland.mbtiles` to start the server for the given mbtiles.

Alternatively, you can use `tileserver-gl-light` package instead, which is pure javascript (does not have any native dependencies) and can run anywhere, but does not contain rasterization features.

Or you can use `docker run -it -v $(pwd):/data -p 8080:80 klokantech/tileserver-gl` to run the server inside a docker container.

Alternatively, you can use `tileserver-gl-light` package instead, which is pure javascript (does not have any native dependencies) and can run anywhere, but does not contain rasterization features.

Prepared vector tiles can be downloaded from [OSM2VectorTiles](http://osm2vectortiles.org/).

## Documentation
Expand Down
17 changes: 17 additions & 0 deletions README_light.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# TileServer GL light
[![Build Status](https://travis-ci.org/klokantech/tileserver-gl.svg?branch=master)](https://travis-ci.org/klokantech/tileserver-gl)
[![Docker Hub](https://img.shields.io/badge/docker-hub-blue.svg)](https://hub.docker.com/r/klokantech/tileserver-gl/)

Vector maps with GL styles. Map tile server for Mapbox Android, iOS, GL JS, Leaflet, OpenLayers, etc. without server side rendering.

## Quickstart
Use `npm install -g tileserver-gl-light` to install the package from npm.

Then you can simply run `tileserver-gl-light zurich_switzerland.mbtiles` to start the server for the given mbtiles.

See also `tileserver-gl` which contains server side rendering.

Prepared vector tiles can be downloaded from [OSM2VectorTiles](http://osm2vectortiles.org/).

## Documentation
You can read full documentation of this project at http://tileserver.readthedocs.io/.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tileserver-gl",
"version": "1.1.0",
"description": "Map tile server for JSON GL styles - serverside generated raster tiles",
"description": "Map tile server for JSON GL styles - vector and server side generated raster tiles",
"main": "src/main.js",
"bin": "src/main.js",
"authors": [
Expand Down
2 changes: 2 additions & 0 deletions publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var fs = require('fs');
var packageJson = require('./package');

packageJson.name += '-light';
packageJson.description = 'Map tile server for JSON GL styles - serving vector tiles';
delete packageJson.dependencies['canvas'];
delete packageJson.dependencies['mapbox-gl-native'];
delete packageJson.dependencies['node-pngquant-native'];
Expand All @@ -29,6 +30,7 @@ delete packageJson.devDependencies;

var str = JSON.stringify(packageJson, undefined, 2);
fs.writeFileSync('light/package.json', str);
fs.renameSync('light/README_light.md', 'light/README.md');

/* PUBLISH */

Expand Down

0 comments on commit ff9d5a8

Please sign in to comment.