mourner / simpleheat

A tiny JavaScript library for drawing heatmaps with Canvas
http://mourner.github.io/simpleheat/demo
BSD 2-Clause "Simplified" License
928 stars 185 forks source link

Inverse Distance Weighting #3

Closed tmcw closed 9 years ago

tmcw commented 10 years ago

See #2, basically the same jam http://en.wikipedia.org/wiki/Inverse_distance_weighting /cc @darrell

mourner commented 10 years ago

Looked at the two methods now — looks great, but the problem with implementing these is that they're interpolation methods, which is different from usual heatmap algorithms that reflect density rather than interpolated values between points.

For this to work as heatmaps, we would need to combine point clustering with interpolation, which is not as simple, and getting sane results from this might involve a lot of tweaking.

fullofcaffeine commented 9 years ago

Hi Tom,

Were you able to find a solution to this one? I have the exact same need to render an IDW heatmap in javascript, something that looks akin to https://www.walkscore.com/choice/restaurants/NY/New_York.

By the way, I see you work / are involved with Mapbox. Does Mapbox offer any tools to implement a heatmap visualization like that, by now?

Thanks!

kas84 commented 9 years ago

@fullofcaffeine I need the same solution too! Please let me know if you find any library that works like that on top of google maps or leaflet.

spatialsparks commented 8 years ago

Hi All I am working on an implementation of IDW for Leaflet. Proof of concept: 5pixelrestest Seeing that I am new to creating plugins for Leaflet, I have taken the Leaflet.heat plugin and used that as a foundation. I will give an update when I have uploaded it. Cheers

mourner commented 8 years ago

@JoranBeaufort this looks great, looking forward to it!

spatialsparks commented 8 years ago

@mourner I have now uploaded my progress. As of now the plugin seems to be working and produces subjectively correct results. There is still a lot to be done, but it seems like off to a good start: https://github.com/JoranBeaufort/Leaflet.idw Seeing that I have basically based the whole code on your Leaflet.heat plugin, there are still a number of things that could be changed to optimise performance (see ToDo section of readme). Hope someone can use this :)

gregrowles commented 8 years ago

This sounds VERY interesting Joran! I'm very much looking forward to testing it in our project... :)

Best, Greg

On Fri, May 20, 2016 at 11:13 AM, JoranBeaufort notifications@github.com wrote:

@mourner https://github.com/mourner I have now uploaded my progress. As of now the plugin seems to be working and produces subjectively correct results. There is still a lot to be done, but it seems like off to a good start: https://github.com/JoranBeaufort/Leaflet.idw Seeing that I have basically based the whole code on your Leaflet.heat plugin, there are still a number of things that could be changed to optimise performance (see ToDo section of readme). Hope someone can use this :)

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/mourner/simpleheat/issues/3#issuecomment-220556011

Health Information Systems Program - South Africa - - - - - - - *- - - - - - - _- - - - - - - _- - - - - - - *- - - - - Mobile : 073 246 2992 Landline: 021 851 2216 Skype: gregory_rowles

spatialsparks commented 8 years ago

@gregrowles Thank you for your interest. I have now added a (hopefully) working example: http://www.geonet.ch/leaflet-idw/ Feel free to download the plugin from https://github.com/JoranBeaufort/Leaflet.idw and play around with the options and number of points. Cheers

gregrowles commented 8 years ago

Lol, now to figure out exactly how to apply IDW to the HIV/AIDS prevention & turnaround strategy in South Africa!!

On Fri, May 20, 2016 at 12:21 PM, JoranBeaufort notifications@github.com wrote:

@gregrowles https://github.com/gregrowles Thank you for your interest. I have now added a (hopefully) working example: http://www.geonet.ch/leaflet-idw/ Feel free to download the plugin from https://github.com/JoranBeaufort/Leaflet.idw and play around with the options and number of points. Cheers

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/mourner/simpleheat/issues/3#issuecomment-220570232

Health Information Systems Program - South Africa - - - - - - - *- - - - - - - _- - - - - - - _- - - - - - - *- - - - - Mobile : 073 246 2992 Landline: 021 851 2216 Skype: gregory_rowles