43
Views
3
Comments
[Google Maps Clusterer] Toggle clustering of Map markers
Question
google-maps-clusterer
Web icon
Forge asset by Harlin Setiadarma

I using forge component "Google Maps Clusterer" to group the marker into clusters in my web application. I am able to create clusters but there is a requirement to toggle between clustered and non-clustered view.

I tried several methods to toggle but couldn't get any success.

Is there any way to toggle between clustered and non-clustered view?

Thanks in advance.

2020-03-23 19-26-24
Sydney Lai

hey Applied Computing. Are you building this in Reactive Web or Traditional?

In that Forge component, if you're hiding clusters/non-clustered view, then set the map-option of the markerClusterer. When you set the map to null all clustered markers will appear as markers.

Sydney

UserImage.jpg
Applied Computing

Sydney Lai wrote:

hey Applied Computing. Are you building this in Reactive Web or Traditional?

In that Forge component, if you're hiding clusters/non-clustered view, then set the map-option of the markerClusterer. When you set the map to null all clustered markers will appear as markers.

Sydney

 

I am using this component in my traditional web application.

2024-03-25 06-19-08
Harlin Setiadarma

Try Sydney suggestion, it can work.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.