For styles that use geojson source, due to the geojson buffer, the evaluation result will be different for features that span multiple tiles. When using distance or within expressions, which will evaluate based on the feature's geometry data. However, with different geoson buffer settings, the feature will be clipped with different geometry data, which will lead to rendering differences.
Take following example to illustrate, the original line string passed as geojson is one LineString feature, when zoom in and zoom out, since the line string spans multiple tile, it will be clipped into several new LineString features. The line string which is within the polygon will be shown as red , otherwise blue.
For styles that use geojson source, due to the geojson buffer, the evaluation result will be different for features that span multiple tiles. When using
distance
orwithin
expressions, which will evaluate based on the feature's geometry data. However, with different geoson buffer settings, the feature will be clipped with different geometry data, which will lead to rendering differences.Take following example to illustrate, the original line string passed as geojson is one
LineString
feature, when zoom in and zoom out, since the line string spans multiple tile, it will be clipped into several newLineString
features. The line string which is within the polygon will be shown as red , otherwise blue.Buffer 0 Zoom 2 vs Buffer 128 Zoom 2:
Buffer 0 Zoom 3 vs Buffer 128 Zoom 3:
Buffer 0 Zoom 4 vs Buffer 128 Zoom 4:
cc: @chloekraw @alexshalamov