Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Restore MUST requirement for version field first

Aperta
#64 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Documentazione
Chiarezza
Da chiarire
Stato di attività
Ferma
Ambito
documentation

Direzione di ricerca

Leggi prima la formulazione del campo della versione nella specifica e la discussione in #43. Per considerarlo completato, sarebbe necessario prendere una decisione per una revisione futura, quindi aggiornare la specifica o documentare perché SHOULD rimane appropriato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

3.0 Specification

At one point the spec said "The version field MUST be the first field within the layer", and as a result of #43 we changed it to SHOULD. I think this was a mistake, and we should have left it MUST, and accepted the requirement that vector tiles be generated with tools that provide control over field order. Let's consider changing it back in a future revision.

Here's the real-world scenario where it matters: for offline features in Mapbox Mobile, the SDK downloads a large number of gzipped vector tiles for offline storage. Mapbox Mobile wants to not have to support V1 tiles at some point in the future. Therefore it needs to verify that all downloaded tiles (possibly tens of thousands of them) are V2 tiles. If the version field were guaranteed to be first, it could gunzip just the first few bytes of each tile and check the version. If the version field is not guaranteed to be first, it has to either disallow otherwise-valid V2 tiles where the version field is not first, or allow an unbounded portion of the tile to be gunzipped, potentially making offline downloads much more compute intensive then they would otherwise need to be. Neither are good failure modes.

cc @flippmoke @joto

Lingua principale
Nessun dato sulla lingua
Stelle
1k
Fork
213
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mapbox/vector-tile-spec

Tutte le issue di mapbox/vector-tile-spec

Issue simili

Altre issue su Documentation

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.