-
-
Notifications
You must be signed in to change notification settings - Fork 717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] With hardware acceleration set to false weird behaviour with initial paint for layers #4647
Comments
Thanks for taking the time to report this issue. |
We have users running MapLibre without hardware acceleration. It's actually pretty decent if you don't have terrain turned on. That said, the codepen above has layers overlapping in weird ways for me even with acceleration turned on. The behavior is the same for me with acceleration turned off, aside from being very slow. |
Yes my bad with hardware acceleration, it also happen, should I rename the issue ? |
I believe the correct way to do it would be to use the map API and not the layer API:
The return type of I would strongly advise to use typescript in order to avoid these kind of issues... |
Well I use Typescript, why not prefix it by underscored then ? Maybe @internal tag would be interesting too. |
And yes I also have users without hardware acceleration that's why I encounter some bugs, yes this one isnt related to hardware acceleration but I can't easly reproduce it in a codepen. |
Well I'll give a try this way, thank you |
I've looked at the code, and it is similar but not identical. maplibre-gl-js/src/style/style.ts Lines 1178 to 1198 in 956485c
|
maplibre-gl-js version: 4.5.0
browser: Chromium 128.0.6613.84
Steps to Trigger Behavior
Link to Demonstration
https://codepen.io/ToHold/pen/abgRaye
Expected Behavior
This should work like with hardware acceleration on
Actual Behavior
Layer are weirdly overlapping each other. In on of my project with threejs, I can see other app windows behind my browser (like vscode).
The text was updated successfully, but these errors were encountered: