Skip to content
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

Canvas content shift after transform and size changed #13113

Open
FlySkyPie opened this issue Mar 8, 2024 · 2 comments
Open

Canvas content shift after transform and size changed #13113

FlySkyPie opened this issue Mar 8, 2024 · 2 comments
Labels

Comments

@FlySkyPie
Copy link

FlySkyPie commented Mar 8, 2024

Environment

  • mapbox-gl-js version: 2.14.1 and 3.2.0
  • Browser: Google Chrome 121.0.6167.160
  • System: Ubuntu 23.04

Description

Canvas not longer display correctly, when changing size and transform scale to big size (8000px in this case), but DOM based items (Marker) still work fine.

Link to Demonstration

Expected Behavior

image

Actual Behavior

image

Extra information

Looks bug only happen on Blink, those browser work fine:

  • Mozilla Firefox 123.0.1
  • Epiphany 44.1
@FlySkyPie
Copy link
Author

I just discovered the the buffer size of WebGLRenderingContext didn't match the canvas size......

@joshnice
Copy link

joshnice commented Apr 22, 2024

We are having the same issue to, however this is when we integrate Mapbox with DeckGL and use their scenegraph layer (glb model files).

I have made a minimal reproduction - https://jsbin.com/makuvaj/edit?html,output
In the example the pink circle layers is where the models should be, if they were rendered in correct position.

To see the bug you will need to manually set your browser width and height to over 8000px.
Additionally I found that the issue only happens on Chrome and not Firefox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants