rastapasta / mapscii

🗺 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
MIT License
7.75k stars 251 forks source link

Alternative map sources #128

Open jaller94 opened 1 year ago

jaller94 commented 1 year ago

If I am understanding correctly, MAPSCII pulls its map data from webAPIs and renders it. Is it possible to host your own mapAPI, update the markers on the map server and then just use MAPSCII as a viewer?

Originally posted by @rcmart3q in https://github.com/rastapasta/mapscii/issues/97#issuecomment-1404700492

Moved to its own issue because it was off-topic. Should be part of a in-tree documentation or wiki.

jaller94 commented 1 year ago

Theoretically, it does support loading local mbtiles files.

npm install -g mapscii
npm install -g @mapbox/mbtiles
mapscii --source /home/rcmart3q/Documents/Vancouver.mbtiles

or another http(s) source (defaults to "http://mapscii.me/"):

npm install -g mapscii
mapscii --source http://localhost:8080/custom-map/
rastapasta commented 1 year ago

Correct, currently the vector tiles are served from https://mapscii.me/{z}/{x}/{y} - in case one uses a different source, the styles and to-be-rendered layers (and their order) might need to be adapted