demo-realtime-digital-marketing icon indicating copy to clipboard operation
demo-realtime-digital-marketing copied to clipboard

Dynamic map-marker clustering

Open carlsverre opened this issue 2 years ago • 0 comments

Currently the maps limit the amount of markers they show. This results in not showing all of the data when the limit is reached. A solution is to perform some kind of clustering when querying SingleStore. A rough sketch of how this might work follows:

  • first query to determine the number of markers visible in the given bounds
  • if over the limit - alter the query to cluster markers together
    • consider using plus codes to help with this... if the initial query returns count grouped by plus code at resolution 8, the followup clustering query could use that information to either cluster at the 6, 8, or 12 level based on how the markers are naturally clustered

carlsverre avatar Apr 04 '22 18:04 carlsverre