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
{{ message }}
Repository navigation
line-gradient colours are inconsistent when zooming into a geojson line #8969
I noticed as you zoom into a single geojson line with line-gradient styling that the style seems to 'reset'.
I first noticed this in my application, but it is also present on the examples page on the Mapbox site with all browsers I've tried:
The above gif is just an example, but this behaviour occurs all along the line. e.g zoom into the bridge.
Thanks for the thorough report @LR-brendan! I was able to reproduce the problem in your examples. On a hunch, in JSBin I set map.showTileBoundaries = true and this is happening at tile boundaries as shown below.
@mourner This is a regression which I tracked to #8303 where the way we calculate line distance is changed.
Activity
ryanhamley commentedon Nov 12, 2019
Thanks for the thorough report @LR-brendan! I was able to reproduce the problem in your examples. On a hunch, in JSBin I set
map.showTileBoundaries = trueand this is happening at tile boundaries as shown below.@mourner This is a regression which I tracked to #8303 where the way we calculate line distance is changed.
mourner commentedon Nov 13, 2019
@ryanhamley Yeah, looks like this broke for overscaled tiles. Thanks for tracking down the offending PR!
@LR-brendan for now, a workaround might be to bump GeoJSON
maxzoomto some higher number.brendan33 commentedon Nov 13, 2019
Thanks @mourner and @ryanhamley for identifying the issue so quickly.
In the meantime I'll try the
maxzoomworkaround , cheers.Fix line line distances breaking gradients
Fix line distances breaking gradient across tile boundaries (#9220)
Fix line distances breaking gradient across tile boundaries (mapbox#9220
Fix line distances breaking gradient across tile boundaries (mapbox#9220
update code (#1)