Skip to content

Is it possible to change the tolerance option on a GeoJSON layer created as part of a style in Studio? #13740

Closed

Description

@BigglesZX

I've created a map style for a project with various layers based on GeoJSON sources, to enhance some of the built-in map details such as building shapes. I'm experiencing some degradation of my GeoJSON polygons which I understand is down to geometry simplification performed by Mapbox:

Source in Workbench:

Image

Same area rendered in map (note the "circular" detail in particular):

Image

The docs state that this behaviour can be altered via the tolerance option on the GeoJSON source. However I'm struggling to ascertain:

  1. Whether it's possible to configure this option on a GeoJSON source that I have imported into Workbench and added to the map style in Studio? and/or..
  2. Whether I can update this option at runtime when using the style that includes this source?

If not, is it necessary to load the source at runtime, rather than bake it into the map style, and specify the option when using addSource?

Any advice would be much appreciated. Thanks in advance.

Activity

  1. BigglesZX commented on Oct 19, 2026

    @BigglesZX
    Author

    Updated to add my discoveries so far:

    • It appears that the tolerance option can only be set when adding GeoJSON sources at runtime, and not set on existing sources already added to the map nor configured in Studio.
    • When using vector tilesets in Studio based on GeoJSON sources, the secret is to publish the tileset, at which point you can choose a value for the simplification setting which appears to be functionally the same as tolerance is for GeoJSON. Setting this to 0 or a low value for the relevant sources in the project above has improved the degraded geometries shown.

    If anyone is able to confirm the above as being the limits of offered functionality so far I'd appreciate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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