Giter VIP home page Giter VIP logo

lfheatmap's People

Contributors

gpolak avatar micazeve avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lfheatmap's Issues

When you zoom into map (and therefore certain points are off screen) they should still be weighed in and not discarded...

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?

Help request for optimization: smaller values should decrease strength

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.
screen shot 2017-11-07 at 11 38 10
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?

Add github ref & license note to code.

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

Is there a way to change colors?

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 :)

need you help

2015-09-30 16 29 17

Hi , I have a question ,I want to achieve this effect(look attachment) . my english is not good ,but i need you help. thinks

Need help in getting Magnitude

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.

Swift

Hi there,

Would it be possible for you to translate your documentation in Swift ? That'd be very much appreciated.

Thanks :)

Show heat map over land only?

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.

render heatmap on imageview

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.