Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQUEST] Please add getMarkers() function for @agm/markerclusterer #1996

Open
neverlose-lv opened this issue Jan 14, 2022 · 1 comment
Open
Labels

Comments

@neverlose-lv
Copy link

neverlose-lv commented Jan 14, 2022

UPDATE2: OK, I finally did it!

UPDATE: After deep investigation - the getMarkers() returns all markes inside of the cluster, but not the grouped one.
I do not know how to get only grouped markers. Any advices?

[REQUEST] Please add getMarkers() function for @agm/markerclusterer

This function exists in native google marker clusterer. But is missing in this plugin.
I very needed.
I have failed to fork and build this package as a dependency.

Here is an example of what need to add:
neverlose-lv@eed2778#diff-2cf0d0f0bfd8c7ff9b29a7feb0a963480b32b65116abe7a863115e63fb67c16fR78

Lines: 78-83

Thank you in advance!

[ADDITIONALY] After some investigation I realized, that I need an asses to the clusterMananager itself. May be you can add such function in the directive?

I explain why this is needed:

I need to receive a list of markers that are grouped by the agm-marker-clusterer.
This is needed because on different map zoom, amount of markers in the clusterer varies.
Example: if there are 7 markers in the clusterer, but only grouped are 3, and 4 stays solo, or are grouped in another clusterer group - I need to get those 3 markers, when I click on the clusterer icon.

@stale
Copy link

stale bot commented Apr 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant