I wanted to display some data (a number, different for each point) on a map (either Google maps or OpenStreetMap). Each point has an associated value (the number above).
For markers which are close to each other, the display is messy and the natural solution for this is to cluster the points.
While there several libraries or built-in mechanisms to cluster data points (including OpenLayers which seems to be very complete), all the ones I found display the number of markers in a cluster, without the possibility to display a sum of values carried by each point (or an average, or other functions which takes values an an input and transform them into one value).
Is there a library which would help with this problem? (in JavaScript for pure client-side rendering and ideally open source)