• Stars
    star
    7,452
  • Rank 4,896 (Top 0.1 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated about 1 month 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
413
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
56
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
29
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
14
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

whatsapp-pandorified

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

points-in-triangle

πŸ”Ί Process all points inside any 2D triangle (Bresenham Triangle Rasterization)
JavaScript
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