Clodeflare: better support for variable tiles pyramid

Aperta
#685 0 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
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend

Direzione di ricerca

Start by reviewing the Cloudflare worker and the linked MapLibre PR #8335, then compare them with the reporter’s client-side tile-slicing code. The issue asks whether slicing variable-zoom vector tiles server-side belongs in the worker or the PMTiles library, and whether an environment variable should enable it; agree on that design and expected behavior before implementation.

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

Descrizione

At Mapeak.com we have a heatmap.
The heatmap was generated from OSM recording we upload (and uploaded from other sources as well).
We created a pmtiles with vector data that has variable zoom levels and host it on cloudflare.
Maplibre (both native and web) doesn't support this well (although I am working on improving support in web, but still).
I'm wondering if adding to the cloud worker some code to allow slicing the the tiles on the fly, server-side style can solve this better than a client side solution.
I wrote the code that slices a vector tile on the client, it's not a lot of code and not very complicated.
Let me know how you feel about incorporating it here, maybe using some env variable to enable it.
I guess it can be added to the pmtiles library itself and not the worker code, but then you'd have dependencies on pbf etc which I don't think it should have.
It does make the worker code a bit more "tile server"-ish but let's face it, it is a very small tile server right now...

Let me know what you think, or if you have a better idea how to solve this.
Relevant maplibre-gl-js PR:

Lingua principale
TypeScript
Stelle
3.3k
Fork
218
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 protomaps/PMTiles

Tutte le issue di protomaps/PMTiles

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.