The GeoJSON layer exhibits rendering issues at zoom level 25
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
**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
}
});
```
2. 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.
3. "The following are the display effects in Mapbox and QGIS, respectively."
QGIS:

Mapbox:

How should I resolve this issue?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reproducing the reported GeoJSON point rendering at zoom level 25 in Chrome using map.addSource and map.addLayer, then trace the relevant circle-layer rendering path. Done requires a reproducible fix for closely spaced points and a regression test, but the issue does not define the expected output precisely.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100