From a16234faaa2ab549c27778bc74e689f6dd7fafde Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Fri, 19 Apr 2019 13:57:40 -0700 Subject: [PATCH] Allow color callback without third arg --- src/ol/renderer/webgl/PointsLayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/renderer/webgl/PointsLayer.js b/src/ol/renderer/webgl/PointsLayer.js index ef1485cfa5..a84db661aa 100644 --- a/src/ol/renderer/webgl/PointsLayer.js +++ b/src/ol/renderer/webgl/PointsLayer.js @@ -74,7 +74,7 @@ const FRAGMENT_SHADER = ` * @property {function(import("../../Feature").default, number):number} [texCoordCallback] Will be called on every feature in the * source to compute the texture coordinates of each corner of the quad (without effect if no `texture` option defined). This is only done on source change. * The second argument is 0 for `u0` component, 1 for `v0`, 2 for `u1`, and 3 for `v1`. - * @property {function(import("../../Feature").default, number, Array):Array} [colorCallback] Will be called on every feature in the + * @property {function(import("../../Feature").default, number, Array=):Array} [colorCallback] Will be called on every feature in the * source to compute the color of each corner of the quad. This is only done on source change. * The second argument is 0 for bottom left, 1 for bottom right, 2 for top right and 3 for top left * The third argument is a array that can be reused to avoid creating a new one.