moagrius / TileView

TileView is a subclass of android.view.ViewGroup that asynchronously displays, pans and zooms tile-based images. Plugins are available for features like markers, hotspots, and path drawing.
MIT License
1.46k stars 337 forks source link

Heatmap Generation #486

Closed srbhagwatsrb closed 6 years ago

srbhagwatsrb commented 6 years ago

Hi, Thanks for the great work. Is there any way i can generate Heatmap for set of points? Please provide any sample if it is possible. Any help would be really appreciated. Thank you.

moagrius commented 6 years ago

There's nothing built in to do that, but you could probably achieve what you want either by subclassing or using the plug-in system

srbhagwatsrb commented 6 years ago

Okay I tried using Hotspot plugin. But i am not able to achieve Heatmap. Any code snippet which can be referred for the purpose of Heatmap generation?

shriharsha-bhagwat commented 6 years ago

Interesting. Can anyone give some ideas related to this? Even i am planning to implement this. Really in need of it. Need help.

shriharsha-bhagwat commented 6 years ago

@moagrius Can you please take a look at this and help me how we can add heatmap like adding markers to some coordinates. Like this

moagrius commented 6 years ago

as mentioned, i would use a Plugin, and override the decorate method, then draw on the canvas directly (probably using Canvas.drawPath)

shriharsha-bhagwat commented 6 years ago

Any help would be really appreciated if you could provide sample code for heatmap plugin.

moagrius commented 6 years ago

can you close this issue and redirect to the other issue where you mention this?

srbhagwatsrb commented 6 years ago

Redirecting to https://github.com/moagrius/TileView/issues/487