Open lkskrt opened 1 month ago
Hi, I think I have identified an issue that affects line-patterns that use a step expression.
line-pattern
step
maplibre-gl-js version: 4.7.1 browser: At least Chrome and Firefox
Configure a style that uses a step expression as a value for line-pattern paint:
new Map({ style: { layers: [ { paint: { 'line-pattern': [ 'step', ['zoom'], 'railway-small', 13, 'railway-large', ], }, }, ], }, zoom: 13.1, };
https://stackblitz.com/edit/maplibre-sprite-test
The sprite railway-large should be rendered when the zoom level is greater than 13.
railway-large
Only thin lines are rendered after the map mounts at zoom level 13.1:
It is necessary to zoom in and out again a couple of times for the correct sprites to show up.
Might be similar to the following bug:
Hi, I think I have identified an issue that affects
line-pattern
s that use astep
expression.maplibre-gl-js version: 4.7.1 browser: At least Chrome and Firefox
Steps to Trigger Behavior
Configure a style that uses a
step
expression as a value forline-pattern
paint:Link to Demonstration
https://stackblitz.com/edit/maplibre-sprite-test
Expected Behavior
The sprite
railway-large
should be rendered when the zoom level is greater than 13.Actual Behavior
Only thin lines are rendered after the map mounts at zoom level 13.1:
It is necessary to zoom in and out again a couple of times for the correct sprites to show up.