mapbox / vector-tile-spec

Mapbox Vector Tile specification
https://www.mapbox.com/vector-tiles/specification/
Other
899 stars 212 forks source link

Maximum number of vertices #149

Open systemed opened 3 years ago

systemed commented 3 years ago

Mapbox Tiling Service docs allude to MBGL performance issues with long linestrings and polygon rings:

Note: Even if the simplification is specified as 0, complex features will receive additional simplification so that they can be rendered correctly by Mapbox GL. Polygons or MultiPolygons with more than 65535 vertices and LineStrings and polygon rings with more than 6553 points will be simplified to reduce their complexity to these limits.

With tilemaker-generated tiles, rendered by MBGL JS, we've also encountered rendering issues that appear to be caused by very long linestrings.

Should the MVT spec recommend (probably as SHOULD rather than MUST) a maximum size, or is this a rendering implementation detail that users are expected to check with their chosen client?