-
Notifications
You must be signed in to change notification settings - Fork 54
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
Assign a fixed color to a value and keep a good representation when markers are close to each other #45
Comments
You are right. That's what any heatmap should do: aggregate values from some area. You can try increasing step or even degree parameter from this formula. This would make aggreagation area smaller, and your small values would become lonely. Thousands of lilliputs would beat Gulliver. |
So are heatmap colors about proximity not value? What I do want is some smearing, which is okay, but not red when the average or even max value is only 55 and a single marker with 100 gets almost nothing. |
The values behind colors are about combination. Distribution of a total value over some area. A kind of density. If you are interested in a maximum value, you can try replacing It depends on your task. If you are mapping wealth distribution in the city, you have to add values. The default color coding in this heatmap is another topic. But if You need it, you can give up normalizing values, implement your own color-coding scheme, which would give you comparable results. Just don't forget to clamp intermediate values to fit your pallette. |
Sorry, i don't see any law or formula, that would describe shape (necks between points) and color of your pictures (sharp edges, no color change between center of the point and border). Linear gradient between 2 points is nice, but it doesn't seem to work in case of even 3 points. Once again: if you need no summation of values, you can use max. This would give you "image" with After it You could modify coloring code: |
I tried that and it had no effect on the map. So I removed all code from heatcanvas-worker.js and the map still was not affected. Removing all code from heatcanvas.js made the page go blank as expected. Therefore heatcanvas-worker.js is not included or referenced. |
One of contributors, who has optimized this lib a bit.
You seem to be mistaken. Try to debug this function: |
Is there a way to assign a fixed color to a value, so it's not normalized to the current view, ie relative to all visible markers?
It seems that the more markers there are, which even don't have a high value, when they are close to each other, the area gets redder. I found markers by themselves having 100 being light blue and many next to each other from 34 - 80 being red.
The text was updated successfully, but these errors were encountered: