Skip to content

The GeoJSON layer exhibits rendering issues at zoom level 25 #13459

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

Open
qjw2bqn opened this issue Apr 23, 2025 · 0 comments
Open

The GeoJSON layer exhibits rendering issues at zoom level 25 #13459

qjw2bqn opened this issue Apr 23, 2025 · 0 comments

Comments

@qjw2bqn
Copy link

qjw2bqn commented Apr 23, 2025

mapbox-gl-js version: 3.11.0

browser: Chrome

Steps to Trigger Behavior

  1. I added a layer using the method map.addLayer, with the source set to GeoJSON, which consists of a collection of point coordinates.
            map.addSource('geojson', {
                type: 'geojson',
                data: '/result/origin.geojson'
            });

            map.addLayer({
                id: 'points',
                type: 'circle',
                source: 'geojson',
                paint: {
                    'circle-color': '#0000FF',
                    'circle-radius': 10
                }
            });
  1. Due to the extremely close proximity of the points (around 0.1 meters apart), they cannot be displayed correctly on the map, whereas they appear normal in QGIS.
  2. "The following are the display effects in Mapbox and QGIS, respectively."
    QGIS:

Image

Mapbox:

Image

How should I resolve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant