Revert "Hide "Unimplemented type: 4" error"

pull/117/head
Christian Paul 2023-02-26 17:49:16 +01:00
rodzic fbe3d629d0
commit 214339dc49
1 zmienionych plików z 1 dodań i 12 usunięć

Wyświetl plik

@ -25,18 +25,7 @@ export default class Tile {
}
_loadTile(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;
}
this.tile = new VectorTile(new Protobuf(buffer));
}
_unzipIfNeeded(buffer) {