Spaces:
Paused
Paused
Download node_modules/@mapbox/vector-tile/lib/vectortile.js from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 382 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40mapbox/vector-tile/lib/vectortile.js
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@mapbox/vector-tile/lib/vectortile.js
-
curl -L -o vectortile.js https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40mapbox/vector-tile/lib/vectortile.js
382 Bytes
| ; | |
| var VectorTileLayer = require('./vectortilelayer'); | |
| module.exports = VectorTile; | |
| function VectorTile(pbf, end) { | |
| this.layers = pbf.readFields(readTile, {}, end); | |
| } | |
| function readTile(tag, layers, pbf) { | |
| if (tag === 3) { | |
| var layer = new VectorTileLayer(pbf, pbf.readVarint() + pbf.pos); | |
| if (layer.length) layers[layer.name] = layer; | |
| } | |
| } | |