gpolak / lfheatmap Goto Github PK
View Code? Open in Web Editor NEWExtremely fast iOS heat maps
License: MIT License
Extremely fast iOS heat maps
License: MIT License
I am using this to overlay a uiimage of heatmap over mapkit. Let's assume for a minute we are talking about a mkmapview of a city. I have points (busyness) for how many ppl are in certain locations...therefore the heatmap of those locations should be denser (brighter). This works when all the points are visible on the main screen...but when you zoom in on a certain area, the busiest points of the city are no longer taken into account when calculating brightness of blobs.
ie: if you have a lot of ppl on top left of map, it is bright yellow with a red background, whereas a lower populated area in center of map is just red. This is as it should be, BUT if i zoom in to center of map, the top left "weight" of the top left coordinates is not taken into account and now center of map is bright yellow. For purposes of brightness of each blob, each weight should always be taken into account. Changing map rect (or zoomlevel) should not change brightness of each section of heatmap.
I have no idea which section is in control of this however it SEEMS to be between 1.0 and 1.5 that is causing this (right after you copy the nsarray into array.
Ideas on a fix?
Hello,
I found your library great for speed and reliability. I'm working on an application that requires a modification on the way the smaller weights interact with larger weights.
If you see the screenshot, the label in the middle signifies the weight. So the point "1" should not increase the power of the zone, but create 2 smaller intensity zones between 64 and 27, so decrease the intensity near 1.
density[y*width + x] += currentDensity * point_weight_percent[i];
I've found the code that calculates the intensity, but any attempt to modify it completely messes up the entire heatmap by cutting the visual consistency of the shapes.
Is there any easy way to modify the code for the desired effect?
Hi im working with swift3, but when I install library with header, show error:
https://stackoverflow.com/questions/44975856/correct-import-on-bring-header-xcode
Im my header:
#import <LFHeatMap.h>
I'm avoiding 3rd party build tools, so I'll be incorporating LFHeatMap source files directly.
I'll be adding a link to the github repo at the top of the .h and .m files manually. It'd be nice if they were already in there with a copyright and credit to you notice.
Thank you for your work!
Kurt
I don't understand the rgba color method calculations you use...but it looks like red represents light population, and it bursts into yellow (and even white?) the more "weight" coordinates have...
I am replacing the heatmap in my app with this one...and wish to keep visual compatibility.
Is it possible to go green means light population, yellow means medium, and red is heaviest? I see you are using "floatdensity" as a trigger for the color, but don't exactly know what that is doing since my understanding of rgba is lacking.
Thanks in advance for answering all my questions :)
Hello Guys, I want to know what is the magnitude you are using in each record. As i am using Forsquare api and there is no such value Magnitude.
Hi, how would I add blur?
Hi there,
Would it be possible for you to translate your documentation in Swift ? That'd be very much appreciated.
Thanks :)
Is it possible to draw heatmaps over land only? Showing over lakes, rivers, etc. is fine but I don't want it to display over oceans.
It would be great if I could render heatmap on a uiimage- e.g a layout- instead of map, is it possible with current version?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.