-
Any support for heatmap as plugins? |
Beta Was this translation helpful? Give feedback.
Replies: 19 comments 8 replies
-
I haven't seen one yet, but I think there are for Leaflet.js so I don't think it would be that tricky to adapt one. |
Beta Was this translation helpful? Give feedback.
-
I have written a heatmap plugin for an ongoing project which I am planning on pulling out into its own repo I just haven't had the time yet. It generates heatmaps similar to the screenshot below. If this is what you are looking for I will try and make time this weekend to pull it out into a separate repo. |
Beta Was this translation helpful? Give feedback.
-
Looks good, I think it would be appreciated by a few. |
Beta Was this translation helpful? Give feedback.
-
this is pretty much what i need, that would be great to have. If I can help with something please let me know. |
Beta Was this translation helpful? Give feedback.
-
I will try and get an alpha release out over the weekend that you can play around with |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
Sorry for the delay. I've been flat out at work for the last few months. I will put up a slimmed down version over the next couple of days to get some feedback on. I have been half way through optimising the caching of the gridded heatmap data but have not had time to finish it off yet. I will put it up as is then add the gridded cache to a separate branch and carry on working on it there. |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
I'm guessing the author is busy, it's been a long while, so I'm tempted to move this to a discussion as @JaffaKetchup suggested. I like the idea of heatmap support, probably as a plugin, and am happy to help with it if others are interested. |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
Apologies for the radio silence I haven't been working with flutter_map for a year or so and this completely fell off my radar. I have pulled the fulttermap_heatmap plugin out of the project and updated it to be compatible with dart null safety and to the latest version of flutter_map. I will get it published to pub.dev today but in the meantime, you can find it here https://github.com/tprebs/fluttermap_heatmap There are a few things still outstanding (e.g. gridded data source provider isn't complete - which would be very useful for tens of thousands of data points) but as an alpha release its good to go. As this was originally extracted from a project it is not massively configurable but I am happy to add accept PRs for any config options which may be needed if this is useful for your projects UPDATEI would also like to caveat that this may no longer be the optimal solution for flutter_maps v3. I have not fully re-read the documentation yet, but this plugin was developed against a more limited futter_map implementation (0.14) where the best option at the time was to implement this as a TileLayer with most of the heavy lifting done by a custom tile provider. From memory, one of the limiting factors was the lack of callbacks for drag events. The addition of onPointerDown and onPointerUp callbacks means this could now probably be implemented outside of a TileLayer |
Beta Was this translation helpful? Give feedback.
-
Great stuff, thanks Thomas. |
Beta Was this translation helpful? Give feedback.
-
I was looking though the documentation to work out why, after updating to flutter_map 3.1.0, the heatmap tile layer does not show until the map is interacted with. I have a suspicion it is related to the reset stream. https://docs.fleaflet.dev/usage/layers/tile-layer/other-options#reset-stream-reset The documentation mentions that this is now less important in v3 (I added the reset stream to flutter_map when originally developing this plugin). Is there now a better alternative for working with dynamic tiles/data other than reset stream, or is it less important as there is an alternative mechanism for clearing the cache of tiles for the most common use case (WMS layers) |
Beta Was this translation helpful? Give feedback.
-
@tprebs Great news, I'll add the plugin as beta to the docs, just let me know once it's all ready! In terms of the reset stream, that was mainly used for resetting tiles after the |
Beta Was this translation helpful? Give feedback.
-
Now available on pub.dev https://pub.dev/packages/flutter_map_heatmap. |
Beta Was this translation helpful? Give feedback.
Now available on pub.dev https://pub.dev/packages/flutter_map_heatmap.