You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The entire layer/map does not render, with an appropriate error
The feature(s) with the broken pattern does not render, but features with valid patterns render properly, e.g.:
Actual Behavior
Rendering is broken - the exact nature of the breakage seems to vary based on where features with broken patterns fall in the tile rendering order.
Some features render with incorrect fill pattern and/or incorrect geometry - in our example we see both:
Feature with missing pattern (Oregon) renders with the pattern of another feature (Washington)
Feature with valid pattern (California) renders improperly, clipped at tile boundary
Interestingly the order in which features appear in the source seems to have an impact. For example, if states appear in the geojson data in the order [California, Oregon, Washington] we get the output above, but in order [Washington, Oregon, California] we get:
Tile rendering order seems also to matter somehow.
Thank you for diagnosing the issue @vakila. I've recommended the workarounds for them (either filtering data to just the property they're mapping, or provide a fallback value)
h/t to Community partner University of Luxembourg for discovering this one (cc @mikelmaron )
mapbox-gl-js version: any (tested with 0.50.0+, demo with 1.5.1)
browser: probably any (Tested with Firefox & Chrome)
Steps to Trigger Behavior
fill-pattern
paint property (in our example, each feature has a "pattern" property with the pattern icon name)""
) for at least one of the target feature patternsLink to Demonstration
https://jsfiddle.net/3ax2w97p
Expected Behavior
Either:
Actual Behavior
Rendering is broken - the exact nature of the breakage seems to vary based on where features with broken patterns fall in the tile rendering order.
Some features render with incorrect fill pattern and/or incorrect geometry - in our example we see both:
Interestingly the order in which features appear in the source seems to have an impact. For example, if states appear in the geojson data in the order [California, Oregon, Washington] we get the output above, but in order [Washington, Oregon, California] we get:
Tile rendering order seems also to matter somehow.
cc @ahk
The text was updated successfully, but these errors were encountered: