Has anyone implemented a clustering plugin for when many elements are in the same area or have the same lat/lon? For example, in LeafLet, there’s a Marker Cluster plugin (https://github.com/Leaflet/Leaflet.markercluster). If not, does anyone have any guidance towards creating such a feature (I imagine looking at Leaflet’s version might be a good starting point). I also see that Vega (http://cesiumjs.org/demos/vega.html) created clustering but that doesn’t appear to be open source?
I too puzzled over this problem, thought I'd share my findings..
For a project I'm currently working on (unfortunately not open-source, yet..) we have resolved to create a bespoke server-side clustering service, which will serve up data for Cesium via rest API (queries by a camera height index + view extent). However; we're doing this because we need to handle large data sets, and facilitate advanced filtering/querying/visualisation of the underlying data.
I've had a quick play with the SLD styling, and they are quite straight forward to set up.
So if you need clustering of point data (or cool heatmaps) in Cesium, it might be worth considering publishing your own GeoServer service to consume in your app.
Hi Ricardo. The code is on github as part of the (unfortunately unfinished)
ngCesium library. There's also the explanation on how it was implemented in
the blog post: http://webiks.com/cesium-clustering/.
Let me know if you need any more clarifications.
If you want, you could share your use case and I could try to generalize
the demo enough for you to use (and hopefully it would fit more people this
way).