Skip to content

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

Open
@qjw2bqn

Description

@qjw2bqn

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions