Skip to content

Conversation

yepninja
Copy link

@yepninja yepninja commented May 3, 2017

When the component first rendered updateHeatmapProps method compare the same props, so nothing will be changed. I've just added variable witch contains information - is it the first call of the update method.
Also I've added support of the blur.

Copy link
Member

@jeremiahrhall jeremiahrhall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see my comments about the radius update check

center: Object;
}

function isTrue(cond: boolean): boolean {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the utility of this function over just using the value passed as cond instead?

nextProps.blur !== this.props.blur,
].some(isTrue),
].every(isTrue),
].some(isTrue)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This formatting is really hard to read and I would be more comfortable with this if this was a set of compound boolean expressions.

@jeremiahrhall
Copy link
Member

@evgeny-petukhov I merged a related fix a while back. Does the new version of this package resolve the issue you were seeing?

@AbolfazlHeidarpour
Copy link

Is there any way to create or add legend for react-leaflet-heatmap-layer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants