update description

This commit is contained in:
mike-000
2020-04-02 23:51:36 +01:00
committed by GitHub
parent 74ba208c22
commit 362df3439e
+2 -4
View File
@@ -4,10 +4,8 @@ title: Disable Image Smoothing
shortdesc: Example of disabling image smoothing shortdesc: Example of disabling image smoothing
docs: > docs: >
Example of disabling image smoothing when using raster DEM (digital elevation model) data. Example of disabling image smoothing when using raster DEM (digital elevation model) data.
The <b>imageSmoothingEnabled</b> (or for Internet Explorer <b>msImageSmoothingEnabled</b>) canvas The <code>imageSmoothing: false</code> setting is used to disable canvas image smoothing during
context property is set to false at the layer's <b>prerender</b> event. Additionally for a reprojection and rendering. Elevation data is
reprojected source those properties must also be also be specified for the canvas contexts used in
the reprojection via the source's <b>reprojectionContextOptions</b> option. Elevation data is
calculated from the pixel value returned by <b>forEachLayerAtPixel<b>. For comparison a second map calculated from the pixel value returned by <b>forEachLayerAtPixel<b>. For comparison a second map
with smoothing enabled returns inaccuate elevations which are very noticeable close to 3107 meters with smoothing enabled returns inaccuate elevations which are very noticeable close to 3107 meters
due to how elevation is calculated from the pixel value. due to how elevation is calculated from the pixel value.