Christian Paul 2023-02-26 16:54:55 +00:00 zatwierdzone przez GitHub
commit 0da0046be5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 12 dodań i 1 usunięć

Wyświetl plik

@ -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) {