alfonsocejudo / fluster

A geospatial point clustering library for Dart.
MIT License
68 stars 25 forks source link

Get the location names of the markers in a cluster #5

Closed MATTYGILO closed 4 years ago

MATTYGILO commented 4 years ago

I was wondering if there is a way in which i can get all the cluster names/ids of the markers that make up a cluster.

Thanks for any suggestions or help?

arthurdenner commented 4 years ago

Hi @MATTYGILO! 👋

I'm not sure if I understand your question, but this library provides two methods: children and points. You can see them here.

In my case (using Flutter), I needed to access some extra information about each point inside a cluster, so I created a class that extended Clusterable and added the properties I needed and they were available on the results from Fluster.points(clusterId).

The description above may be confusing, so read this article for a better understanding - check the section Implementing Fluster.

alfonsocejudo commented 4 years ago

Thanks for helping out with this issue @arthurdenner

arthurdenner commented 4 years ago

@alfonsocejudo, can this issue be closed?