HeatMap doesn't use weights
See original GitHub issueI spend quite some time tracking down this bug. I think it should be fixed or the limitation should be clearly stated in the docs. This is a major time waster and makes a bad impression on this otherwise great package.
This is a major bug coming for the upstream Leaflet.heat project.
- https://github.com/python-visualization/folium/issues/496
- https://github.com/Leaflet/Leaflet.heat/issues/43
- https://github.com/Leaflet/Leaflet.heat/issues/74
Problem description
The plugins.HeatMap
states that the points used to create the heat map can
be weighted.
data (list of points of the form [lat, lng] or [lat, lng, weight])
However weights are simply ignored. This makes it useless for heatmaps that are based on a few points with different weights.
Expected Output
Weight should have impact. Or remove this option from the docs.
Issue Analytics
- State:
- Created 4 years ago
- Comments:23
Top Results From Across the Web
How to implement weights in folium Heatmap? - Stack Overflow
I would expect that the intensity of the heatmap should use the value of sales of each store, as sales was passed in...
Read more >Can't see weight paint heatmap in blender 2.8 release ...
I am trying to weight paint a terrain to adjust the amount of stones in some spots, but when I go in weight...
Read more >How to create a weighted heatmap - GMT Community Forum
Hi, I would like to plot a weighted density plot based on occurence of events at a certain location. I have a matrix...
Read more >Deep Down in CNN: Does it Sound too Complicated? Let's ...
We all use some deep learning tools to create applications for our projects. ... Let's Observe Weights with a Heatmap! Source: Freepik.
Read more >HeatmapRenderer | ArcGIS Maps SDK for JavaScript 4.25
This eases the process for creating your own color stops since you don't need to ... When using a field to weight the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can install folium with pip from the master branch like this:
pip install git+https://github.com/python-visualization/folium.git
Note that you’re using v0.11.0 and we were talking about the master branch, which contains a fix for heatmaps and changes its behavior slightly. With the fix,
max_val
is deprecated.