question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HeatMap doesn't use weights

See original GitHub issue

I 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.

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:closed
  • Created 4 years ago
  • Comments:23

github_iconTop GitHub Comments

1reaction
Conengmocommented, Aug 13, 2020

You can install folium with pip from the master branch like this: pip install git+https://github.com/python-visualization/folium.git

1reaction
Conengmocommented, Aug 13, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found