--- layout: example.html title: Disable Image Smoothing shortdesc: Example of disabling image smoothing docs: > Example of disabling image smoothing when using raster DEM (digital elevation model) data. The `imageSmoothing: false` setting is used to disable canvas image smoothing during reprojection and rendering. Elevation data is calculated from the pixel value returned by forEachLayerAtPixel. For comparison a second map with smoothing enabled returns inaccuate elevations which are very noticeable close to 3107 meters due to how elevation is calculated from the pixel value. tags: "disable image smoothing, xyz, maptiler, reprojection" cloak: - key: get_your_own_D6rA4zTHduk6KOKTXzGB value: Get your own API key at https://www.maptiler.com/cloud/ ---

#### Smoothing Disabled

Elevation 0.0 meters
Imagery opacity %

#### Uncorrected Comparison

Elevation 0.0 meters