diff --git a/src/ol/control/OverviewMap.js b/src/ol/control/OverviewMap.js index 9c496034f2..79faf74add 100644 --- a/src/ol/control/OverviewMap.js +++ b/src/ol/control/OverviewMap.js @@ -204,7 +204,8 @@ class OverviewMap extends Control { }; const move = function(event) { - const coordinates = ovmap.getEventCoordinate(computeDesiredMousePosition(event)); + const position = /** @type {?} */ (computeDesiredMousePosition(event)); + const coordinates = ovmap.getEventCoordinate(/** @type {Event} */ (position)); overlay.setPosition(coordinates); }; diff --git a/src/ol/format/filter/And.js b/src/ol/format/filter/And.js index 209191f8ef..ccb63c397e 100644 --- a/src/ol/format/filter/And.js +++ b/src/ol/format/filter/And.js @@ -15,8 +15,7 @@ class And extends LogicalNary { * @param {...import("./Filter.js").default} conditions Conditions. */ constructor(conditions) { - const params = ['And'].concat(Array.prototype.slice.call(arguments)); - super(...params); + super('And', Array.prototype.slice.call(arguments)); } } diff --git a/src/ol/format/filter/LogicalNary.js b/src/ol/format/filter/LogicalNary.js index c97759f2e2..d785e411b9 100644 --- a/src/ol/format/filter/LogicalNary.js +++ b/src/ol/format/filter/LogicalNary.js @@ -15,7 +15,7 @@ class LogicalNary extends Filter { /** * @param {!string} tagName The XML tag name for this filter. - * @param {...import("./Filter.js").default} conditions Conditions. + * @param {Array} conditions Conditions. */ constructor(tagName, conditions) { @@ -24,7 +24,7 @@ class LogicalNary extends Filter { /** * @type {Array} */ - this.conditions = Array.prototype.slice.call(arguments, 1); + this.conditions = conditions; assert(this.conditions.length >= 2, 57); // At least 2 conditions are required. } diff --git a/src/ol/format/filter/Or.js b/src/ol/format/filter/Or.js index 9500c89d0f..545ad4d196 100644 --- a/src/ol/format/filter/Or.js +++ b/src/ol/format/filter/Or.js @@ -14,8 +14,7 @@ class Or extends LogicalNary { * @param {...import("./Filter.js").default} conditions Conditions. */ constructor(conditions) { - const params = ['Or'].concat(Array.prototype.slice.call(arguments)); - super(...params); + super('Or', Array.prototype.slice.call(arguments)); } } diff --git a/src/ol/renderer/canvas/IntermediateCanvas.js b/src/ol/renderer/canvas/IntermediateCanvas.js index dd4149c7af..2b24b3e958 100644 --- a/src/ol/renderer/canvas/IntermediateCanvas.js +++ b/src/ol/renderer/canvas/IntermediateCanvas.js @@ -120,7 +120,7 @@ class IntermediateCanvasRenderer extends CanvasLayerRenderer { if (this.getLayer().getSource().forEachFeatureAtCoordinate !== VOID) { // for ImageCanvas sources use the original hit-detection logic, // so that for example also transparent polygons are detected - return super.forEachLayerAtCoordinate(arguments); + return super.forEachLayerAtCoordinate(coordinate, frameState, hitTolerance, callback, thisArg); } else { const pixel = applyTransform(this.coordinateToCanvasPixelTransform, coordinate.slice()); scaleCoordinate(pixel, frameState.viewState.resolution / this.renderedResolution); diff --git a/src/ol/renderer/vector.js b/src/ol/renderer/vector.js index 9412568dfd..8d5a93ad4a 100644 --- a/src/ol/renderer/vector.js +++ b/src/ol/renderer/vector.js @@ -142,7 +142,7 @@ function renderFeatureInternal(replayGroup, feature, style, squaredTolerance) { /** * @param {import("../render/ReplayGroup.js").default} replayGroup Replay group. - * @param {import("../geom/Geometry.js").default} geometry Geometry. + * @param {import("../geom/Geometry.js").default|import("../render/Feature.js").default} geometry Geometry. * @param {import("../style/Style.js").default} style Style. * @param {import("../Feature.js").FeatureLike} feature Feature. */