[Google Maps Clusterer] Toggle clustering of Map markers

Forge Component
(5)
Published on 2017-03-24 by Harlin Setiadarma
5 votes
Published on 2017-03-24 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.

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

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.

Try Sydney suggestion, it can work.