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] 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