Skip to content

Get any kind of data about children of cluster #10

Open
@TheLastGimbus

Description

@TheLastGimbus

Hi there!

I'm making an app where we use flutter_map - on this map, we will have ~4k markers. Because of this, it lags very much, and we really need to cluster thse for our app to be usable

For past 4 weeks I've been trying to do this well, and all libraries are failing miserably at some point

Your library is so far the best perfomant, and I can get 60 fps 💯 when re-drawing it and generally messing with the markers

But it fails in one aspect - I can't get the data about children markers (efficiently)

All markers in our app represent some int value - and I would like clusters to represent averge of those ints - problem is that:

Fluster(
  ...
  createCluster: (BaseCluster cluster, lng, lat) {
    // There is no way to get data about children ("non-cluster objects") from BaseCluster
  }
)

I tried to get this from outside Fluster constructor, with fluster.points() - but it turns out it does some heavy calculations under the hood, and re-running it 500 times make everything super laggy

At this point, @alfonsocejudo, I deperatly need your help or I will freak out 🙏 - if you could add any way for BaseCluster to contain some data about it's children, or show me how I could add this in a fork - I could finally finish my job, which I initially thought would take me 2 hours 🤮

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions