angular-google-maps
angular-google-maps copied to clipboard
[REQUEST] Please add getMarkers() function for @agm/markerclusterer
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: https://github.com/neverlose-lv/angular-google-maps/commit/eed277876549b58b41ee7d9515a47f07e5cb3115#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.
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.