mapscii
mapscii copied to clipboard
Unimplemented type: 4
Steps to reproduce
linux 5.7.4.arch1-1
, in either urxvt
or xterm
:
$ npx mapscii
Welcome to MapSCII! Use your cursors to navigate, a/z to zoom, q to quit.Error: Unimplemented type: 4
at Pbf.skip (/usr/lib/node_modules/mapscii/node_modules/pbf/index.js:211:20)
at Pbf.readFields (/usr/lib/node_modules/mapscii/node_modules/pbf/index.js:46:45)
at new VectorTile (/usr/lib/node_modules/mapscii/node_modules/@mapbox/vector-tile/lib/vectortile.js:8:23)
at Tile._loadTile (/usr/lib/node_modules/mapscii/src/Tile.js:33:17)
at /usr/lib/node_modules/mapscii/src/Tile.js:24:19
renderer is busy
and nothing more appears - no map. Exactly the same when I run mapscii
installed from AUR
.
I have been getting this same error on a Raspberry Pi Zero. It occurs when zoom is between 2 and 3, then it works fine, then it stops again at 4.
Same issue on Ubuntu 20.04 with mapscii v0.3.1 installed via snap.
PBF is a file format for map tiles used by MapSCII. A few tiles at those zoom levels contain data of an optional type 4 (info). https://github.com/rastapasta/mapscii/issues/71#issuecomment-512737220
- Long-term this type should get supported or ignored in the upstream dependency
pbf
. - Generally, it would be good to catch errors while loading tiles and display them somewhere.
The map data is a static snapshot from a few years back. Clearing the cache won't help until the map data is updated.
This affects all platforms and current versions.
I have this too; what is the state of fixing this?