• Stars
    star
    7,898
  • Rank 4,763 (Top 0.1 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 8 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ—บ MapSCII is a Braille & ASCII world map renderer for your console - enter => telnet mapscii.me <= on Mac (brew install telnet) and Linux, connect with PuTTY on Windows

MapSCII - The Whole World In Your Console. Build Status

A node.js based Vector Tile to Braille and ASCII renderer for xterm-compatible terminals.

asciicast

Try it out!

$ telnet mapscii.me

If you're on Windows, use the open source telnet client PuTTY to connect.

Features

  • Use your mouse to drag and zoom in and out!
  • Discover Point-of-Interests around any given location
  • Highly customizable layer styling with Mapbox Styles support
  • Connect to any public or private vector tile server
  • Or just use the supplied and optimized OSM2VectorTiles based one
  • Work offline and discover local VectorTile/MBTiles
  • Compatible with most Linux and OSX terminals
  • Highly optimized algorithms for a smooth experience
  • 100% pure JavaScript! ๐Ÿ˜Ž

How to run it locally

With a modern node installation available, just start it with

npx mapscii

How to install it locally

With npm

If you haven't already got Node.js >= version 10, then go get it.

npm install -g mapscii

If you're on OSX, or get an error about file permissions, you may need to do sudo npm install -g mapscii

With snap

In any of the supported Linux distros:

sudo snap install mapscii

(This snap is maintained by @nathanhaines)

Running

This is pretty simple too.

mapscii

Keyboard shortcuts

  • Arrows up, down, left, right to scroll around
  • Press a or z to zoom in and out
  • Press c to switch to block character mode
  • Press q to quit

Mouse control

If your terminal supports mouse events you can drag the map and use your scroll wheel to zoom in and out.

Behind the scenes

Libraries

Mastering the console

Discovering the map data

Juggling the vectors and numbers

  • earcut for polygon triangulation
  • rbush for 2D spatial indexing of geo and label data
  • bresenham for line point calculations
  • simplify-js for polyline simplifications

Handling the flow

TODOs

  • MapSCII

    • GeoJSON support via geojson-vt

    • CLI support

      • [-] startup parameters
        • TileSource
        • Style
        • center position
        • zoom
        • demo mode?
    • mouse control

      • hover POIs/labels
      • hover maybe even polygons/-lines?
  • Styler

    • respect zoom based style ranges
  • Renderer

    • download and process tiles in a different thread (#3)
    • optimize renderer for large areas (#6)
    • label drawing
      • multi line label?
  • TileSource

    • implement single vector-tile handling

Special thanks

Licenses

Map data

The Open Data Commons Open Database License (oDbl)

OpenStreetMap is open data, licensed under the Open Data Commons Open Database License (ODbL) by the OpenStreetMap Foundation (OSMF).

You are free to copy, distribute, transmit and adapt our data, as long as you credit OpenStreetMap and its contributors. If you alter or build upon our data, you may distribute the result only under the same licence. The full legal code explains your rights and responsibilities.

The cartography in our map tiles, and our documentation, are licenced under the Creative Commons Attribution-ShareAlike 2.0 licence (CC BY-SA).

MapSCII

More Repositories

1

pokemon-go-mitm

๐ŸŽ Pokemon Go MITM Proxy - Intercepts the traffic between your Pokemon Go app and their servers, decodes the protocol and gives you a handy tool to enrich your own game experience on the fly.
CoffeeScript
487
star
2

react-native-gl-model-view

๐Ÿ“บ Display and animate textured Wavefront .OBJ 3D models with 60fps - native bridge to GLView (iOS) and jPCT-AE (Android)
Java
419
star
3

pokemon-go-xposed

๐Ÿ“ฑ Xposed module for Pokemon Go - Circumvents the certificate pinning by injecting the expected SSL trust chain, allows you to MITM and to configure a custom API endpoint.
Java
129
star
4

react-native-animated-math

๐ŸŽž๏ธ Animated API math extension - approximates sin, cos and tan by combining Animated Nodes with full Native Driver support
JavaScript
77
star
5

tilegrinder

โ™ป๏ธ A node.js GIS helper library for easy alteration of Vector Tiles in an MBTiles container
CoffeeScript
67
star
6

foodsharing

๐ŸดA modern approach to foodsharing.network's mobile app - full React Native reimplementation of the current Android app and beyond - for iOS and Android.
TypeScript
54
star
7

pokemon-go-protobuf

๐Ÿ› ห› Pokemon Go protobuf protocol wrapper for node.js
JavaScript
43
star
8

tileshrink

๐ŸŒ CLI tool to reduce and simplify Vector Tile features in an MBTiles container
CoffeeScript
31
star
9

spark-bouncer

๐Ÿ”‘ IoT RFID + Spark Core based door access control system with full cloud immersion
C++
18
star
10

satellites-above

๐Ÿ“ก GPS satellite tracker - which GPS satellites are currently visible above a given location on earth?
CoffeeScript
15
star
11

invisible-attachment

๐Ÿ™ˆ Utilize invisible UTF8-characters to encode and attach any integer to a string without changing its visual appearance
JavaScript
11
star
12

points-in-polygon

๐Ÿ–ผ๏ธ Process all points inside any 2D polygon
JavaScript
8
star
13

wresenham

๐Ÿ“ˆ Bresenham line algorithm with stroke Width - process all points on a line, given two points and a width
JavaScript
8
star
14

points-in-triangle

๐Ÿ”บ Process all points inside any 2D triangle (Bresenham Triangle Rasterization)
JavaScript
6
star
15

whatsapp-pandorified

Have a meaningful conversation with a Pandorabot via Whatsapp
6
star
16

spark-cerial

ใ€ฐ๏ธ IoT Cloud Serial library for the Spark Core, implements a remote Serial device
C++
2
star
17

strombewusst

Arduino / Other related Source Code of the StromBewusstSein project
Objective-C
2
star