-
Notifications
You must be signed in to change notification settings - Fork 818
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
How to subscribe to click event on Cluster Marker - agm-marker-cluster #1272
Comments
I hope this helps, this is what I ended up doing. The click events are in the clustering directive that calls the service. The markerClicked function in the .ts responds to click events. The template has conditional tags that allow visible/hidden behaviour for the marker metadata to show. // File marker-cluster.directive.ts
// ******************************* // File my-module.ts
// ******************************* // My-module.html template // Custom info window
// agm-map obtains marker data from the cluster directive, click event responds to function
|
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. |
@Martin-B Can you provide a more complete example of this? |
Add clusterClick event to MarkerCluster. fixes: #1272
I am developing Angular 4 bases application where in I need to integrate google maps and have a functionality of displaying clusters. If there are multiple locations at same lat-long, a cluster is shown with the number of locations.Further, I need to display a popup dialog on clicking this cluster. I am able to get the clustering working using agm-marker-cluster, but I am not sure the event to subscribe to, when the user clicks on the cluster. Can someone let me know how to go about it.
Thanks.
The text was updated successfully, but these errors were encountered: