Open labeeba opened 6 years ago
Thanks for raising this.
There is no way to do this directly through this (because, afaik, Google maps itself doesn't support it). However, you should be able to integrate with Jupyter widgets. For sample code, see issue #210, for instance.
Thanks for your reply.
I found the default gradient used for the heatmap colors. ["rgba(102, 255, 0, 0)", "rgba(102, 255, 0, 1)", "rgba(147, 255, 0, 1)", "rgba(193, 255, 0, 1)", "rgba(238, 255, 0, 1)", "rgba(244, 227, 0, 1)", "rgba(249, 198, 0, 1)", "rgba(255, 170, 0, 1)", "rgba(255, 113, 0, 1)", "rgba(255, 57, 0, 1)", "rgba(255, 0, 0, 1)"]
Hi, I am using your gmaps library for a research project. I am using latitude and longitude values to generate a heatmap using the following code:
I could not find a way to add a legend to the heat map to indicate how the colors (red, yellow, green) correspond to the density. In other words, how can I get the values/weight for these colors to better understand the heatmap? How do I create such a legend? Thanks