mapscii icon indicating copy to clipboard operation
mapscii copied to clipboard

Alternative map sources

Open jaller94 opened this issue 2 years ago • 2 comments

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 avatar Feb 09 '23 15:02 jaller94

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/

jaller94 avatar Feb 09 '23 15:02 jaller94

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

rastapasta avatar Feb 09 '23 16:02 rastapasta