codeant-ai-for-open-source[bot] commented on PR #38035:
URL: https://github.com/apache/superset/pull/38035#issuecomment-4039000961
## **Sequence Diagram**
This PR modernizes deck.gl and point-cluster map charts so they can render
on either MapLibre (no key) or Mapbox (API key), handling query results,
clustering, and drawing overlays on the chosen map renderer.
```mermaid
sequenceDiagram
participant User
participant Frontend
participant Backend
participant MapChart
participant MapRenderer
User->>Frontend: Open dashboard or Explore with map chart
Frontend->>Backend: Request chart data with form data (including map
renderer and style)
Backend-->>Frontend: Return query rows with longitude, latitude, and
metrics
Frontend->>MapChart: Transform data into features, bounds and (for
clusters) Supercluster index
MapChart->>MapRenderer: Initialize MapLibre or Mapbox with selected base
style
MapRenderer-->>MapChart: Emit viewport changes (center, zoom, bounds)
MapChart->>MapChart: Compute deck layers or clusters for current viewport
MapChart->>MapRenderer: Draw overlays (deck.gl layers or canvas scatter)
on top of base map
```
---
*Generated by [CodeAnt AI](https://codeant.ai)*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]