kopia lustrzana https://github.com/rastapasta/mapscii
Porównaj commity
11 Commity
922f1ae43f
...
a45870de45
Autor | SHA1 | Data |
---|---|---|
Christian Paul | a45870de45 | |
Christian Paul | 214339dc49 | |
Christian Paul | fbe3d629d0 | |
dependabot[bot] | 4fe9a60a0c | |
dependabot[bot] | 1ac31f62e9 | |
dependabot[bot] | 84f29b8e8b | |
dependabot[bot] | dcc2508761 | |
dependabot[bot] | bae6fcfc93 | |
dependabot[bot] | e39cd8783b | |
dependabot[bot] | c093199c65 | |
dependabot[bot] | edeb0ebb2d |
Plik diff jest za duży
Load Diff
12
package.json
12
package.json
|
@ -33,21 +33,21 @@
|
|||
"dependencies": {
|
||||
"@mapbox/vector-tile": "^1.3.1",
|
||||
"bresenham": "0.0.4",
|
||||
"earcut": "^2.2.3",
|
||||
"earcut": "^2.2.4",
|
||||
"env-paths": "^3.0.0",
|
||||
"keypress": "^0.2.1",
|
||||
"node-fetch": "^3.2.4",
|
||||
"node-fetch": "^3.3.0",
|
||||
"pbf": "^3.2.1",
|
||||
"rbush": "^3.0.1",
|
||||
"simplify-js": "^1.2.4",
|
||||
"string-width": "^5.1.2",
|
||||
"term-mouse": "^0.2.2",
|
||||
"x256": "0.0.2",
|
||||
"yargs": "^17.4.1"
|
||||
"yargs": "^17.7.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^8.14.0",
|
||||
"eslint-plugin-jest": "^26.1.5",
|
||||
"jest": "^28.0.3"
|
||||
"eslint": "^8.35.0",
|
||||
"eslint-plugin-jest": "^27.2.1",
|
||||
"jest": "^29.4.3"
|
||||
}
|
||||
}
|
||||
|
|
13
src/Tile.js
13
src/Tile.js
|
@ -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) {
|
||||
|
|
Ładowanie…
Reference in New Issue