From 13713bab51ac30837641c924b425093bfdb2db91 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Thu, 20 Feb 2020 11:09:12 +0100 Subject: [PATCH] Fix type and documentation of style function --- src/ol/style/Style.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ol/style/Style.js b/src/ol/style/Style.js index 5d44dc6c6c..10ea9a0701 100644 --- a/src/ol/style/Style.js +++ b/src/ol/style/Style.js @@ -13,9 +13,10 @@ import Stroke from './Stroke.js'; * A function that takes an {@link module:ol/Feature} and a `{number}` * representing the view's resolution. The function should return a * {@link module:ol/style/Style} or an array of them. This way e.g. a - * vector layer can be styled. + * vector layer can be styled. If the function returns `undefined`, the + * feature will not be rendered. * - * @typedef {function(import("../Feature.js").FeatureLike, number):(Style|Array