Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Pixel smoothing - how to disable? #15

@gjones84

Description

@gjones84

Firstly thanks for putting this together - I'm actually using it in OpenLayers rather than Mapbox and having great success. The only stumbling block I have now though is that I can't seem to prevent the Landsat pixels from being "smoothed" - I'm doing vegetation analysis and need the raw Landsat pixel values, but when they show up on the map they are being dithered/anti-aliased within the pixels, rather than appearing as a single colour for each pixel. See image below:
pixelsmoothing

I've tried setting imageSmoothingEnabled = false as suggested by a post on Stack Overflow, as this seems to work for others who are using static PNG images, but doesn't work for me, I wonder if landsat-tiler is actually supplying "pre-smoothed" data. Is this the case, and would it be possible to optionally disable it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions