-
Notifications
You must be signed in to change notification settings - Fork 525
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
Heatlayer radius over 80 creates strange object outside default heat #108
Comments
This doesn't only happen when the radius is over 80. I have the same issue with a higher blur value. As far as I can tell it only happens when the blur value is greater than or equal to the radius with the size of the object increases with the blur value. Code to reproduce issue:
As far as I can tell your issue isn't really a radius of 80 but rather that the blur level is too high. It does appear to become problematic with a radius over about 100, regardless of the blur value. I believe it has something to do with the fact that a large number of points end up overlapping. |
As a workaround: Import simpleheat
Leaflet.heat/dist/leaflet-heat.js Lines 1 to 5 in fbca300
The issue has been resolved in Using TypeScript and Webpack, we achieved this workaround: LSS-Manager/LSSM-V.4@7d07baa importing |
Hi @jxn-30 is a release possible with this fix included? Thanks |
Oh, ok, thank you anyway. I guess @IvanSanchez can do the new release?
|
If I create heatlayer with radius over 80 it creates valid heatmap but outside that circle, something strange appears.
Code:
var heat = L.heatLayer([], { radius: 80, minOpacity: .6, opacity: 0.8, blur: 100, gradient: { 1.0: color, }, }); heat.addTo(mymap);
It seems that bigger radius than some value is creating second object(?) outside default heat circle.
The text was updated successfully, but these errors were encountered: