Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bugs with radius, blur and max. #9 #17

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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

@@ -46,6 +46,11 @@ export type LeafletZoomEvent = {
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