Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 469
abenrob Avatar asked Sep 04 '26 06:09

abenrob


1 Answers

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

like image 54
Lucas Wojciechowski Avatar answered Sep 06 '26 23:09

Lucas Wojciechowski