diff --git a/.gitignore b/.gitignore index 506fd93..7bd6280 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ bundle* *.log tmp mbtiles +tiles diff --git a/README.md b/README.md index d48c2ca..35fce7e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# MapSCII - Map Viewer for your console +# MapSCII - the whole world in your console. No web browser around? Don't worry - and discover the planet in your console! @@ -8,7 +8,7 @@ No web browser around? Don't worry - and discover the planet in your console! * Discover the globe or zoom in to explore your neighbourhood * See Point-of-Interest around any given location * Use an online map server or work offline with VectorTile/MBTiles -* Highly customizable styling (reuse your [mapbox-gl-style](https://github.com/mapbox/mapbox-gl-styles)s) +* Highly customizable styling (reuse your [mapbox-gl-styles](https://github.com/mapbox/mapbox-gl-styles)) * Compatible with Linux' and OS X' terminals, Windows support via [PuTTY](http://www.putty.org/) * 99% pure Coffee-/JavaScript! :sunglasses: @@ -20,11 +20,9 @@ No web browser around? Don't worry - and discover the planet in your console! `npm install -g mapscii` -## How to use it? -#### Basic usage -* Start `mapscii` with +* Start it with - ` mapscii` + `mapscii` ## Behind the scenes diff --git a/scripts/cleanStyle.coffee b/scripts/cleanStyle.coffee deleted file mode 100644 index 3fa6ec2..0000000 --- a/scripts/cleanStyle.coffee +++ /dev/null @@ -1,46 +0,0 @@ -### - termap - Terminal Map Viewer - by Michael Strassburger - - just a tool to make development easier - - Input: Mapbox Studio map style file - Output: Reduced map style file (only supported attributes are kept) -### -fs = require 'fs' - -cleanStyle = (file) -> - json = JSON.parse fs.readFileSync(file).toString() - - cleanedStyle = - name: json.name - layers: [] - - for layer in json.layers - continue if layer.ref - - cleanLayer = - type: layer.type - id: layer.id - paint: {} - 'source-layer': layer['source-layer'] - - - for key in ['filter', 'minzoom'] - cleanLayer[key] = layer[key] if layer[key] - - if layer.layout?['text-size'] - cleanLayer.layout = 'text-size': layer.layout?['text-size'] - - for key in ['fill-color', 'line-color', 'text-color', 'background-color'] - cleanLayer.paint[key] = layer.paint[key] if layer.paint?[key] - - if Object.keys(cleanLayer.paint).length - cleanedStyle.layers.push cleanLayer - - JSON.stringify cleanedStyle, null, ' ' - -console.log unless process.argv[2] - "usage: coffee cleanStyle.coffee " -else - cleanStyle process.argv[2] diff --git a/scripts/mergeStyle.coffee b/scripts/mergeStyle.coffee deleted file mode 100644 index 4edf15f..0000000 --- a/scripts/mergeStyle.coffee +++ /dev/null @@ -1,29 +0,0 @@ -### - termap - Terminal Map Viewer - by Michael Strassburger - - just a dev tool to make development easier -### -fs = require 'fs' - -mergeStyle = (from, to) -> - from = JSON.parse fs.readFileSync(from).toString() - to = JSON.parse fs.readFileSync(to).toString() - - fromLayers = {} - for layer in from.layers - fromLayers[layer.id] = layer - - for id, layer of to.layers - continue unless from = fromLayers[layer.id] - - # -> logic for what ever should be merged - if width = from.paint['line-width'] - to.layers[id].paint['line-width'] = width - - JSON.stringify to, null, ' ' - -console.log unless process.argv[2] and process.argv[3] - "usage: coffee mergeStyle.coffee " -else - mergeStyle process.argv[2..3]... diff --git a/tiles/berlin.z12.pbf.gz b/tiles/berlin.z12.pbf.gz deleted file mode 100644 index b279ef3..0000000 Binary files a/tiles/berlin.z12.pbf.gz and /dev/null differ diff --git a/tiles/europe.pbf.gz b/tiles/europe.pbf.gz deleted file mode 100644 index 03664c4..0000000 Binary files a/tiles/europe.pbf.gz and /dev/null differ diff --git a/tiles/germany.pbf.gz b/tiles/germany.pbf.gz deleted file mode 100644 index 9ec3aad..0000000 Binary files a/tiles/germany.pbf.gz and /dev/null differ diff --git a/tiles/regensburg.pbf.gz b/tiles/regensburg.pbf.gz deleted file mode 100644 index 7c26d47..0000000 Binary files a/tiles/regensburg.pbf.gz and /dev/null differ diff --git a/tiles/regensburg.z10.pbf.gz b/tiles/regensburg.z10.pbf.gz deleted file mode 100644 index fe77de8..0000000 Binary files a/tiles/regensburg.z10.pbf.gz and /dev/null differ diff --git a/tiles/regensburg.z12.pbf.gz b/tiles/regensburg.z12.pbf.gz deleted file mode 100644 index 1b00a21..0000000 Binary files a/tiles/regensburg.z12.pbf.gz and /dev/null differ diff --git a/tiles/sf.z7.pbf.gz b/tiles/sf.z7.pbf.gz deleted file mode 100644 index ed1d516..0000000 Binary files a/tiles/sf.z7.pbf.gz and /dev/null differ diff --git a/tiles/world.pbf.gz b/tiles/world.pbf.gz deleted file mode 100644 index 6c06011..0000000 Binary files a/tiles/world.pbf.gz and /dev/null differ