Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility Issue with Mapbox in React using ECharts #20714

Open
kartiksyal21 opened this issue Jan 23, 2025 · 0 comments
Open

Compatibility Issue with Mapbox in React using ECharts #20714

kartiksyal21 opened this issue Jan 23, 2025 · 0 comments
Labels
en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature.

Comments

@kartiksyal21
Copy link

kartiksyal21 commented Jan 23, 2025

Integrating ECharts with Mapbox in React applications is not working as expected. Despite configuring geo.map with mapbox, the map does not render properly or fails silently. The lack of compatibility makes it difficult to create advanced map visualizations with Mapbox and ECharts in React environments

Steps to Reproduce

  1. Install echarts and mapbox-gl.
  2. Use the following geo configuration in an ECharts option:
    geo: {
        map: 'mapbox',
        mapbox: {
            style: 'mapbox://styles/mapbox/streets-v11',
            center: [-95.7129, 37.0902],
            zoom: 3,
        },
    },
    series: [
        {
            type: 'scatter',
            coordinateSystem: 'geo',
            data: [[-95.7129, 37.0902]],
            symbolSize: 10,
        },
    ],
  3. Render the chart in a React component using echarts-for-react.
  4. Mapbox map does not render and produces errors in the console.

Mapbox integration with ECharts is either broken or not functioning properly in React applications.

@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

1 participant