You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assign canvas width and height to a fixed value (e.g. 512px)
assign RasterTileLayer#tileSize (maybe? it seemed like this mattered in my early tests, maybe not)
compare with devicePixelRatio = 1 vs. devicePixelRatio > 1
The problem occurs only for devicePixelRatio > 1 in my testing. An easy way to switch back and forth would be to create a custom 'device' in Chrome dev tools, with a different devicePixelRatio:
Environment
Framework version: deck.gl 9.0.40
Browser: Arc, Chromium 132.0.6834.111
OS: macOS 15.2
Logs
No response
The text was updated successfully, but these errors were encountered:
Description
Under some configurations I'm seeing the RasterTileLayer render its contents in the lower-left corner of the canvas:
In this screenshot, the black pixels should be over the lake.
Flavors
Expected Behavior
No response
Steps to Reproduce
https://stackblitz.com/edit/carto-raster-pixelratio
RasterTileLayer#tileSize
(maybe? it seemed like this mattered in my early tests, maybe not)devicePixelRatio = 1
vs.devicePixelRatio > 1
The problem occurs only for devicePixelRatio > 1 in my testing. An easy way to switch back and forth would be to create a custom 'device' in Chrome dev tools, with a different devicePixelRatio:
Environment
Logs
No response
The text was updated successfully, but these errors were encountered: