Skip to content

Commit

Permalink
fix(geo-layers): HeatmapLayer crash with constant weight (#9021)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress authored Jul 14, 2024
1 parent f2564da commit f6e8e7e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -588,10 +588,8 @@ export default class HeatmapLayer<
const attributeManager = this.getAttributeManager()!;
const attributes = attributeManager.getAttributes();
const moduleSettings = this.getModuleSettings();
const positions = attributes.positions.buffer;
const uniforms = {radiusPixels, commonBounds, textureWidth: textureSize, weightsScale};
const weights = attributes.weights.buffer;
weightsTransform.model.setAttributes({positions, weights});
this._setModelAttributes(weightsTransform.model, attributes);
weightsTransform.model.setVertexCount(this.getNumInstances());
weightsTransform.model.setUniforms(uniforms);
weightsTransform.model.updateModuleSettings(moduleSettings);
Expand Down

0 comments on commit f6e8e7e

Please sign in to comment.