Skip to content

Add resampling option to mapbox layers sourcetype "image" #6455

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

Closed
gperaza opened this issue Jan 30, 2023 · 1 comment
Closed

Add resampling option to mapbox layers sourcetype "image" #6455

gperaza opened this issue Jan 30, 2023 · 1 comment

Comments

@gperaza
Copy link

gperaza commented Jan 30, 2023

Dear all,

I am trying to load a local raster (as a png image) to a mapbox map using the "image" layer as instructed here:
https://plotly.com/python/datashader/

The image is loaded successfully and displays well on the map, but pixel edges appear blurred.
image

As far as I understand, this is caused by linear resampling being the default in mapbox as explained in the following link:
https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#paint-raster-raster-resampling

I would like to use "nearest" resampling to recover the pixelated appearance of raster images.
As per #4490 this doesn't seem too difficult, since Mapbox already support this, but it still escapes my ability for a pull request.

Is there any change the option can be added?
Thanks

@gvwilson
Copy link
Contributor

gvwilson commented Jul 4, 2024

Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for several years, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Thanks for your help - @gvwilson

@gvwilson gvwilson closed this as completed Jul 4, 2024
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

2 participants