Leaflet heatmap makes some weird shapes

147 views
Skip to first unread message

Amit

unread,
Jul 6, 2020, 1:01:02 PM7/6/20
to Leaflet
hey,
I have started using leaflet.heatmap lately and I'm getting this result (attached file) for 20%~ of the heatmap instances.

 I've tried changing the radius and the blur, and even tho it does fix the problem for the very instance, it occurred on any around 20% of the following instances.

Thank you.
LeafletBug.jpg

Pat Keller

unread,
Jul 7, 2020, 9:09:48 AM7/7/20
to Leaflet
The image looks like a plausible heatmap. What is the problem with it? Can you give some more details? Can you make a fiddle or plunker that demonstrates the issue?

Amit

unread,
Jul 7, 2020, 9:21:10 AM7/7/20
to Leaflet
Thank you very much for answering.

The problem is with the unwanted ellipse shapes, I've made it more clear with the new image (attached).
Thank you.

ב-יום שלישי, 7 ביולי 2020 בשעה 16:09:48 UTC+3, pkel...@gmail.com כתב/ה:
leafletbug2.0.png

Edwin Corrigan

unread,
Jul 7, 2020, 10:28:05 AM7/7/20
to leafl...@googlegroups.com
The more detail you can provide, the more likely we can help :)

Some live representation of your issue would be ideal, but the following might help us to understand the problem a little more:
- There are a few heatmap plugins, but I was unable to find any strictly called "leaflet.heatmap". Which one are you using, it is on this list? - https://leafletjs.com/plugins.html#heatmaps
- What parameters did you use to produce the heatmap? 
- You mentioned you tried adjusting radius, what happens when you set it to a very, very, low number?
- Are there any open issues on the plugin's github repository that may be similar to what you are experiencing (this has helped me in the past)?


--

---
You received this message because you are subscribed to the Google Groups "Leaflet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leaflet-js+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leaflet-js/2cba6b8f-193d-4684-8767-4368d460d4bcn%40googlegroups.com.

Amit

unread,
Jul 7, 2020, 1:05:11 PM7/7/20
to Leaflet
Thank you too for taking the time to help me.

-I'm using leaflet.heat.

-I'm using a vary of parameters and in all of the cases where I used slightly high radius parameter I got this result.
The parameters I'm using in the attached image are: radius 15.6, blur 21.6.

-When setting the radius to low, I don't get this problem.

-I couldn't find any similar issue in the internet.

In addition, the way I distribute my grid of points is symmetrical grid above a city, where all the points are within an equal distance from each other.
I haven't seen others use heat map this way, which may indicate the reason I'm having this issue.

Thanks again.
ב-יום שלישי, 7 ביולי 2020 בשעה 17:28:05 UTC+3, Edwin כתב/ה:
Reply all
Reply to author
Forward
0 new messages