[CHORE]: Prepare for CARTO basemap API key enforcement

Đang mở
#8,141 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
data-visualization

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
JavaScript
Star
18.4k
Fork
2.1k
Merge trung bình
2 ngày 16 giờ
Pull request đã merge (30 ngày)
11

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của plotly/plotly.js

Tất cả issue của plotly/plotly.js

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.