mirror of
https://github.com/rastapasta/mapscii.git
synced 2024-11-25 01:23:58 +01:00
Revert "Hide "Unimplemented type: 4" error"
This commit is contained in:
parent
fbe3d629d0
commit
214339dc49
13
src/Tile.js
13
src/Tile.js
@ -25,18 +25,7 @@ export default class Tile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_loadTile(buffer) {
|
_loadTile(buffer) {
|
||||||
try {
|
this.tile = new VectorTile(new Protobuf(buffer));
|
||||||
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) {
|
_unzipIfNeeded(buffer) {
|
||||||
|
Loading…
Reference in New Issue
Block a user