Closed UberMouse closed 2 months ago
It also seems like when trying to enable again the sky using the checkbox it doesn't bring them back. It might be related to this code, but I'm not sure this is the only part that doesn't take sky as undefined correctly: https://github.com/maplibre/maplibre-gl-js/blob/e6b44367af5c960f1737989bb106fe572263e56c/src/style/sky.ts#L60
Feel free to investigate.
Should be fixed by #4587 and released shortly after this is merged.
Just managed to check this out. Maybe I am misunderstanding something but this does not appear to fix the issue. I've attached two screenshots of the same strip of horizon, one with terrain enabled, one without terrain and otherwise identical. Both have sky disabled (via setStyle
with an object that has sky: undefined
), but there is a clear difference in hazyness near the horizon in the one with terrain on vs the one with terrain off. I would expect them both to look the same.
Terrain enabled
Terrain disabled
Can you check how this looks before sky was added (version 4.0 for example)
Yea here's what it looked like on 4.3.2
Terrain enabled
Terrain disabled
No haze
Can you open a different issue then? Jsbin would be helpful to see the difference between versions and rendering.
You want me to open the same issue again? I opened this issue to fix the bug I'm highlighting and it has a JSBin to enable switching the version to compare
Sorry, my mistake, no need, I reread the original post...
There were multiple issues in this report I guess...
Should be fixed in #4607. I'm not sure if the fix should be in the shader itself, but I think this is good enough...
maplibre-gl-js version: 4.5.1
browser: Vivaldi 6.8.3381.48
Steps to Trigger Behavior
map.setSky(undefined)
)Link to Demonstration
https://jsbin.com/hibilakuno/edit?html,output
Expected Behavior
The sky/horizon/fog rendering is disabled when terrain is enabled when calling
setSky(undefined)
orsky: undefined
in a style specActual Behavior
Only sky rendering is disabled when terrain is enabled