mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 19:04:02 +00:00
docs(street-level): shorten docs and comments before merge
Trim the doc text this PR adds (README, CHANGELOG, CURRENT-STATE, KNOWN-ISSUES, SECURITY, DATA_SOURCES, .env.example, the CI job comment), drop code comments that restate the code, cut design-note JSDoc to a line or two, and drop review tags from test names. Comments only; no code changes. Also: README key count (seven keys, two metered), CURRENT-STATE's gate paragraph (CI runs a production build with a dummy token), the stacked doc above meshBoxInRange and the orphaned inMeshRange line in coverage.js, and a duplicate ALPR row in DATA_SOURCES that a merge had brought back. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
c65feda4b1
commit
4ea6631425
85 files changed
+701
-1520
No files matched your search
@@ -17,10 +17,8 @@ function layerName(layerBytes) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Drop whole layers from a vector tile at the protobuf level. Nothing inside
|
||||
* a kept layer is decoded or re-encoded, so a 12 MB tile whose bulk is an
|
||||
* unused layer trims in a few milliseconds. Returns the input when nothing
|
||||
* was dropped.
|
||||
* Drop whole layers from a vector tile without decoding kept layers, so a
|
||||
* 12 MB tile trims in milliseconds. Returns the input when nothing was dropped.
|
||||
* @param {Buffer|Uint8Array} bytes
|
||||
* @param {Iterable<string>} dropNames
|
||||
*/
|
||||
@@ -31,7 +29,7 @@ export function stripTileLayers(bytes, dropNames) {
|
||||
const writer = new PbfWriter();
|
||||
let dropped = false;
|
||||
reader.readFields((tag, _result, pbf) => {
|
||||
if (tag !== TILE_LAYER_FIELD) return; // pbf skips what we leave alone
|
||||
if (tag !== TILE_LAYER_FIELD) return;
|
||||
const end = pbf.readVarint() + pbf.pos;
|
||||
const layerBytes = bytes.subarray(pbf.pos, end);
|
||||
pbf.pos = end;
|
||||
|
||||
Reference in new issue
Block a user