Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/Tile.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,18 @@ class Tile {
}

_loadTile(buffer) {
this.tile = new VectorTile(new Protobuf(buffer));
try {
this.tile = new VectorTile(new Protobuf(buffer));
} catch (error) {
// Ignoring upstream issue https://github.com/rastapasta/mapscii/issues/87
if (error.message === 'Unimplemented type: 4') {
this.tile = {
layers: [],
};
return;
}
throw error;
}
}

_unzipIfNeeded(buffer) {
Expand Down