From 087090c07d5043c2fd87ae94447eea1f91d718df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergi=20=C3=81vila?= Date: Mon, 14 Feb 2022 12:46:18 +0100 Subject: [PATCH 1/3] Fix wrong array generic type --- src/ol/style/literal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/style/literal.js b/src/ol/style/literal.js index 6f73f338aa..6d42898ca8 100644 --- a/src/ol/style/literal.js +++ b/src/ol/style/literal.js @@ -29,7 +29,7 @@ export const SymbolType = { /** * @typedef {Object} LiteralSymbolStyle - * @property {ExpressionValue|Array} size Size, mandatory. + * @property {ExpressionValue|Array} size Size, mandatory. * @property {SymbolType} symbolType Symbol type to use, either a regular shape or an image. * @property {string} [src] Path to the image to be used for the symbol. Only required with `symbolType: 'image'`. * @property {string} [crossOrigin='anonymous'] The `crossOrigin` attribute for loading `src`. From 7e1bbd1c6d0e37f477632427d6563c1fe30e64ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergi=20=C3=81vila?= Date: Mon, 14 Feb 2022 12:49:19 +0100 Subject: [PATCH 2/3] Fix type on Circle, return null coordinates --- src/ol/geom/SimpleGeometry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/geom/SimpleGeometry.js b/src/ol/geom/SimpleGeometry.js index fa100c3d01..b64d10facd 100644 --- a/src/ol/geom/SimpleGeometry.js +++ b/src/ol/geom/SimpleGeometry.js @@ -55,7 +55,7 @@ class SimpleGeometry extends Geometry { /** * @abstract - * @return {Array<*>} Coordinates. + * @return {Array<*> | null} Coordinates. */ getCoordinates() { return abstract(); From f9bc546e1ec34a995e1ad4944aa9769baaead022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergi=20=C3=81vila?= Date: Mon, 14 Feb 2022 12:50:06 +0100 Subject: [PATCH 3/3] Fix type on GeoJSON --- src/ol/format/GeoJSON.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ol/format/GeoJSON.js b/src/ol/format/GeoJSON.js index a4cb0c7bb3..52be02255f 100644 --- a/src/ol/format/GeoJSON.js +++ b/src/ol/format/GeoJSON.js @@ -66,6 +66,9 @@ class GeoJSON extends JSONFeature { ); if (options.featureProjection) { + /** + * @type {import("../proj/Projection.js").default} + */ this.defaultFeatureProjection = getProjection(options.featureProjection); }