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

Raster layer paint raster resampling set to nearest does not work as expected #13196

Open
InzeNL opened this issue Jun 6, 2024 · 0 comments
Open

Comments

@InzeNL
Copy link

InzeNL commented Jun 6, 2024

mapbox-gl-js version:
v3.4.0

browser:
Chrome 125

Steps to Trigger Behavior

  1. Upload a raster file (file used in example can be found here)
  2. Add the raster source with this file to mapbox
  3. Add the raster layer with "paint"."raster-resampling" set to "nearest"
  4. Zoom in

Link to Demonstration

https://jsbin.com/bekoxekoqi/edit?html,js,output

Expected Behavior

Mapbox should display something like this (taken from QGIS)
image

Actual Behavior

It still seems to do some type of linear scaling
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant