ランキングに戻る

rastapasta/mapscii

JavaScript

🗺 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

ascii-artmapvector-tilesbrailleconsoleconsole-applicationopenstreetmap
スター成長
スター
9.2k
フォーク
293
週間成長
Issue
43
5k
2017年4月2020年5月2023年6月2026年7月
成果物npmnpm install mapscii
README

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! :sunglasses:

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

関連リポジトリ
chubin/wttr.in

:partly_sunny: The right way to check the weather

GoGo ModulesApache License 2.0weather-informationweather-api
wttr.in
30.2k1.3k
ArthurSonzogni/FTXUI

:computer: C++ Functional Terminal User Interface. :heart:

C++MIT Licenseuiterminal
arthursonzogni.github.io/FTXUI/
10.5k605
schachmat/wego

weather app for the terminal

GoGo ModulesISC Licensegowego
8.5k506
vietnh1009/ASCII-generator

ASCII generator (image to text, image to image, video to video)

PythonPyPIMIT Licenseasciiascii-art
8.3k651
peterbrittain/asciimatics

A cross platform package to do curses-like operations, plus higher level APIs and widgets to create text UIs and ASCII art animations

PythonPyPIApache License 2.0pythoncurses
4.3k267
ChrisBuilds/terminaltexteffects

TerminalTextEffects (TTE) is a terminal visual effects engine, application, and Python library.

PythonPyPIMIT Licenseterminal-basedvisualisation
chrisbuilds.github.io/terminaltexteffects/
4.1k95
TheZoraiz/ascii-image-converter

A cross-platform command-line tool to convert images into ascii art and print them on the console. Now supports braille art!

GoGo ModulesApache License 2.0golangascii-art
3.4k183
hzeller/timg

A terminal image and video viewer.

C++GNU General Public License v2.0ascii-artgif
2.7k88
sepandhaghighi/art

🎨 ASCII art library for Python

PythonPyPIMIT Licenseasciiascii-art
ascii-art.site
2.5k156
sinclairzx81/zero

A 3D renderer written in JavaScript and rendered to the terminal.

TypeScriptnpmOthergraphicsascii-art
2.5k145
larymak/Python-project-Scripts

This repositories contains a list of python scripts projects from beginner level advancing slowly. More code snippets to be added soon. feel free to clone this repo

Jupyter NotebookGNU General Public License v3.0python-scriptwebscrapping
2.4k1.1k
ArthurSonzogni/Diagon

Interactive ASCII art diagram generators. :star2:

C++MIT Licenseascii-artwebassembly
arthursonzogni.com/Diagon/
2.2k77