-
Notifications
You must be signed in to change notification settings - Fork 134
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 { |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
@evgeny-petukhov I merged a related fix a while back. Does the new version of this package resolve the issue you were seeing? |
Is there any way to create or add legend for react-leaflet-heatmap-layer? |
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.