abenrob
abenrob

Reputation: 886

Control MapboxGL geometry simplification

MapboxGL does some levels of feature simplification &/or filtering depending on zoom level (for performance reasons.)

I am rendering full-coverage data as vector tiles (Canada census data in this case.) When polygons are simplified or filtered based on zoom, this causes holes to be visible in a dataset that should be continuous.

I have some control over simplification on the server, but I have limited server-side simplification already, for the same reason. When viewing these same tiles with Leaflet.VectorGrid or Leaflet.MapboxVectorTile in leaflet, the tiles show up fine at all zoom levels.

Is it possible to override client side simplification thresholds?

differences at zoom levels 8-11

Upvotes: 3

Views: 1380

Answers (1)

Lucas Wojciechowski
Lucas Wojciechowski

Reputation: 3782

Vector tile sources are not simplified or modified clientside. Any simplification must be done on the server.

GeoJSON sources are simplified clientside and can be configured with the tolerance property

Upvotes: 3

Related Questions