mirror of
https://github.com/rastapasta/mapscii.git
synced 2025-06-25 12:01:47 +02:00
Merge 50294ac6337e8024f4ca3043833669544f9a211f into 4fe9a60a0c9da952dadc5214a9ca5c68c447fdf8
This commit is contained in:
commit
0da0046be5
13
src/Tile.js
13
src/Tile.js
@ -30,7 +30,18 @@ class Tile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_loadTile(buffer) {
|
_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) {
|
_unzipIfNeeded(buffer) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user