Merge pull request #9433 from fredj/cleanup

Remove unused private variables, remove trailing whitespace
This commit is contained in:
Frédéric Junod
2019-04-15 13:36:54 +02:00
committed by GitHub
+1 -23
View File
@@ -27,7 +27,6 @@ import WebGLPointsLayerRenderer from '../renderer/webgl/PointsLayer';
* of the heatmap, specified as an array of CSS color strings. * of the heatmap, specified as an array of CSS color strings.
* @property {number} [radius=8] Radius size in pixels. * @property {number} [radius=8] Radius size in pixels.
* @property {number} [blur=15] Blur size in pixels. * @property {number} [blur=15] Blur size in pixels.
* @property {number} [shadow=250] Shadow size in pixels.
* @property {string|function(import("../Feature.js").default):number} [weight='weight'] The feature * @property {string|function(import("../Feature.js").default):number} [weight='weight'] The feature
* attribute to use for the weight or a function that returns a weight from a feature. Weight values * attribute to use for the weight or a function that returns a weight from a feature. Weight values
* should range from 0 to 1 (and values outside will be clamped to that range). * should range from 0 to 1 (and values outside will be clamped to that range).
@@ -75,7 +74,6 @@ class Heatmap extends VectorLayer {
delete baseOptions.gradient; delete baseOptions.gradient;
delete baseOptions.radius; delete baseOptions.radius;
delete baseOptions.blur; delete baseOptions.blur;
delete baseOptions.shadow;
delete baseOptions.weight; delete baseOptions.weight;
super(baseOptions); super(baseOptions);
@@ -85,24 +83,6 @@ class Heatmap extends VectorLayer {
*/ */
this.gradient_ = null; this.gradient_ = null;
/**
* @private
* @type {number}
*/
this.shadow_ = options.shadow !== undefined ? options.shadow : 250;
/**
* @private
* @type {string|undefined}
*/
this.circleImage_ = undefined;
/**
* @private
* @type {Array<Array<import("../style/Style.js").default>>}
*/
this.styleCache_ = null;
listen(this, listen(this,
getChangeEventType(Property.GRADIENT), getChangeEventType(Property.GRADIENT),
this.handleGradientChanged_, this); this.handleGradientChanged_, this);
@@ -273,9 +253,7 @@ class Heatmap extends VectorLayer {
} }
} }
], ],
opacityCallback: function(feature) { opacityCallback: this.weightFunction_
return this.weightFunction_(feature);
}.bind(this)
}); });
} }
} }