From 2b52a12453f05d4b94f3a5b082a5a13d1f911041 Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Sat, 6 Feb 2021 13:45:13 +0000 Subject: [PATCH 1/2] Correct pixel ratio description --- src/ol/source/ImageCanvas.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ol/source/ImageCanvas.js b/src/ol/source/ImageCanvas.js index 5ab0aea92f..c1ff2d8d26 100644 --- a/src/ol/source/ImageCanvas.js +++ b/src/ol/source/ImageCanvas.js @@ -15,8 +15,8 @@ import { * A function returning the canvas element (`{HTMLCanvasElement}`) * used by the source as an image. The arguments passed to the function are: * {@link module:ol/extent~Extent} the image extent, `{number}` the image resolution, - * `{number}` the device pixel ratio, {@link module:ol/size~Size} the image size, and - * {@link module:ol/proj/Projection} the image projection. The canvas returned by + * `{number}` the pixel ratio of the map, {@link module:ol/size~Size} the image size, + * and {@link module:ol/proj/Projection} the image projection. The canvas returned by * this function is cached by the source. The this keyword inside the function * references the {@link module:ol/source/ImageCanvas}. * @@ -30,8 +30,8 @@ import { * @property {FunctionType} [canvasFunction] Canvas function. * The function returning the canvas element used by the source * as an image. The arguments passed to the function are: `{import("../extent.js").Extent}` the - * image extent, `{number}` the image resolution, `{number}` the device pixel - * ratio, `{import("../size.js").Size}` the image size, and `{import("../proj/Projection.js").Projection}` the image + * image extent, `{number}` the image resolution, `{number}` the pixel ratio of the map, + * `{import("../size.js").Size}` the image size, and `{import("../proj/Projection.js").Projection}` the image * projection. The canvas returned by this function is cached by the source. If * the value returned by the function is later changed then * `changed` should be called on the source for the source to From 1c47d268fb3d02a3be4b8c80c358424aae505c2c Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Sat, 6 Feb 2021 13:49:48 +0000 Subject: [PATCH 2/2] Correct pixel ratio description --- src/ol/style/Icon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/style/Icon.js b/src/ol/style/Icon.js index d3c6fa3577..916f6c5aa3 100644 --- a/src/ol/style/Icon.js +++ b/src/ol/style/Icon.js @@ -323,7 +323,7 @@ class Icon extends ImageStyle { /** * Get the pixel ratio. * @param {number} pixelRatio Pixel ratio. - * @return {number} The pixel ration of the image. + * @return {number} The pixel ratio of the image. * @api */ getPixelRatio(pixelRatio) {