The example uses a simple geojson with two lines, one should be filled with a black dashed line and the other with yellow icons.
On a small zoom everything shows up as it should, but if you zoom in on the map you can see that the styles get mixed up.
The yellow line starts to appear as a black dashed line and vice versa.
The problem seems to be the reuse of sprites.
We have only noticed this problem for the line-pattern property.
Before using the pre-metalKit version, we had no problems. The problem persists on the latest version 6.5.4 , and is also definitely present on 6.5.0
Describe the bug
In our product we use a style with
line-pattern
. In versions that use MetalKit for map rendering we noticed a problem with filling lines with pattern.I have prepared a test project demonstrating the problem (attached).
The project style is available in style.json file or at https://api.npoint.io/7dac9318bfb95b18a9dc.
The example uses a simple geojson with two lines, one should be filled with a black dashed line and the other with yellow icons.
On a small zoom everything shows up as it should, but if you zoom in on the map you can see that the styles get mixed up. The yellow line starts to appear as a black dashed line and vice versa.
The problem seems to be the reuse of sprites.
We have only noticed this problem for the
line-pattern
property.Before using the pre-metalKit version, we had no problems. The problem persists on the latest version 6.5.4 , and is also definitely present on 6.5.0
MlnPatterBug.zip
Screenshots
![photo_2024-08-19 19 10 50](https://github.com/user-attachments/assets/198595eb-0e23-466c-9a9f-51cedd90886f)
Platform information (please complete the following information):