Support custom planar projections when migrating to deck.gl v10
I maintainer di solito rispondono entro 1 giorno
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
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- data-visualization
Direzione di ricerca
Read the referenced CustomProjectionView documentation, projection-domains guide, v10 upgrade guide, and layer-preprojection tests before assessing implementation. Establish Mercator and globe rendering baselines, then validate Equal Earth; the issue calls for changes across rendering, projection handling, routes, workers, clustering, and validation. Done means the listed rendering modes and projection cases work with documented projection and route limitations.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Follow up to #115. Add custom planar projection support after the deck.gl v10 APIs are ready, starting with Equal Earth and retaining the existing Mercator/globe behavior.
The current deck.gl source (inspected at 12496f0a9e) provides experimental _CustomProjectionView: math.gl resolves a target CRS and deck.gl converts position attributes on the CPU before normal GPU rendering. This is not an arbitrary nonlinear projection function available inside our shaders. Confirm the released APIs before implementation.
Initial scope
- Port deck.gl/luma dependencies and custom-layer APIs together. Migrate shader injections to plugins, update renamed packages and coordinate-system APIs, and verify existing WebGL rendering first. Treat a WGSL/WebGPU port as separate work.
- Opt arrow endpoints and location-circle positions into
usePositionTransforms()(or its released equivalent). Verify accessor-keyed binary arrays, precision, invalidation on CRS changes, picking and highlights; direct GPU attribute buffers need explicit handling. - Make viewport state, visibility and clustering scale projection-aware. Replace reconstruction of a Mercator viewport and implicit “not globe means Mercator” assumptions. Preserve serializable state and conversion ownership for worker data providers.
- Compute planar corridor grouping/offsets in the actual target projection. Keep route geometry and local tangent separate from ribbon width, endpoint trimming and arrowhead construction.
- Start with straight and bowed arrows in the projected map plane, plus animation with a documented distance convention. PR #115 documents globe animation as surface-distance spacing, which foreshortens toward the horizon; screen-uniform spacing would be an explicit behavior change.
- Handle switching between MapView and CustomProjectionView and independent views with different CRSs. Current deck.gl documentation requires new layer IDs between those view types and separate layer instances per projection.
Geographic routes and projection boundaries
Projecting only the endpoints and joining them does not preserve a geographic great-circle route. If we add that behavior, sample routes in geographic coordinates, project the samples and construct the ribbon/head from the resulting path and tangents. Do not apply sphere-specific GLSL to planar coordinates.
Define and implement seam/domain handling before claiming arbitrary-projection support: split paths at longitude cuts and interrupted-projection lobes, handle invalid/nonfinite conversions, and preserve flow identity through split geometry for picking. CustomProjectionView does not provide general clipping/topology; its bounds are not a validity domain. Retain conservative visibility bounds for the actual displaced ribbon, including bows and arrowheads.
Validation and rollout
- Establish Mercator and globe baselines before dependency changes.
- Validate Equal Earth first, then a polar stereographic view and a regional projected CRS.
- Cover all rendering modes, endpoint trimming, arrowheads, corridor separation, animation spacing, picking/highlights, clustering, workers, multiple views and live projection switching.
- Add seam, polar and invalid-domain fixtures before expanding supported projections.
- Profile CPU conversion/subdivision, memory, large flow counts and update frequency. Ordinary pan/zoom should not unnecessarily rebuild projected geometry.
- Document supported projections, basemap limitations, route semantics and remaining limitations. Do not assume existing tiled basemaps work with CustomProjectionView.
References:
- Lingua principale
- TypeScript
- Stelle
- 143
- Fork
- 24
- Merge medio
- 1g 4h
- PR unite (30g)
- 18
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di visgl/flowmap.gl
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
visgl/flowmap.gl#126 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
visgl/flowmap.gl#125 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
visgl/flowmap.gl#60 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
visgl/flowmap.gl#59 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
visgl/flowmap.gl#41 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di visgl/flowmap.gl
Issue simili
-
accessibility area:ci ci-test level:low priority:high type:test
Difficoltà 2/5 1-3 ore Idoneità per principianti 71/100
skytuhua-org/Gen-V1#3132 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
drmrd/vernacular#1238 ·
I maintainer di solito rispondono entro 1 giorno
-
question
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
enhancement migration-prioritized
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Hudson-Pufferfish/local-party-console#136 ·
I maintainer di solito rispondono entro 1 giorno
-
priority:medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno