[CHORE]: Prepare for CARTO basemap API key enforcement

Aperta
#8,141 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript

Direzione di ricerca

Start by reading the layout.map.style documentation and the tests and baselines that use CARTO styles. Confirm the vector key enforcement timeline with CARTO or the maintainers, then decide how Plotly should handle it and document that outcome for users. Done means the docs explain CARTO's terms and key requirements, and tests and baselines no longer depend on live CARTO data.

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

Descrizione

chore P2 plotly-internal size: 3 task
Description

Prepare plotly.js for CARTO enforcing its basemap API key on vector tiles. Find out when enforcement starts, decide how Plotly handles it, and document the outcome for users. Today CARTO enforces the key only for raster tiles, which Plotly does not use.

Why should this change be made?

CARTO's docs say an API key is required for all CARTO basemaps. Plotly's carto-* styles and the legacy basic, streets, outdoors, light and dark styles load keyless vector styles from basemaps.cartocdn.com/gl/. If CARTO enforces the key for vector tiles, all of these styles stop loading for every user. Plotly has no way to pass a key. A shared key in the bundle would count against one quota and break CARTO's terms.

Scope
  • Ask CARTO or the maintainers when vector enforcement starts
  • Decide what Plotly does when it starts: document the ?key= workaround through map.style, or choose a default basemap that needs no key
  • Add a note under layout.map.style that CARTO styles fall under CARTO's terms and may need an API key
  • Stop the tests and baselines from using the live CARTO style, so they do not break when CARTO changes its data or its key rules (see the baseline breakage after CARTO's 2026-10-21 move to carto.streets/v2)
Notes
Lingua principale
JavaScript
Stelle
18.4k
Fork
2.1k
Merge medio
2g 16h
PR unite (30g)
11

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 plotly/plotly.js

Tutte le issue di plotly/plotly.js

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.