[CHORE]: Prepare for CARTO basemap API key enforcement

未關閉
#8,141 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
42/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
javascript

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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
主要語言
JavaScript
星號
18.4k
分支
2.1k
平均合併
2 天 16 小時
30 天內合併 PR
11

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

plotly/plotly.js 的其他 Issue

查看 plotly/plotly.js 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。