Remove aggregation for map on zoom out

Hello Helical Insight,

I am using maps in Helical Insight 4.0. When we zoom out, we get aggregated clusters. I want to disable aggregation of the individual markers to form clusters. How can this be achieved?

Thanks,
Netta.

Hello Netta,

Step 1: Download HICharts.js file provided as attachment in this answer, and upload/replace it to the location : "..\hi\apache-tomcat-9\webapps\hi-ee\js\vendors"

Step 2: Any custom icons which should get displayed based on certain value conditions, those specific icon files (in .png format) should be uploaded in the location : "..\hi\hi-repository\System\Admin\CustomScripts\map\images"

Below script is for flattening out all the markers and removing the clusters. You can change the zoom max, zoom min, zoom level value based on requirement. You can test the same by injecting it in JS editor.

hi_container.set("preExecution",function(c){

var viz_Options = c.get("viz_Options");
viz_Options.chartOptions["disableClusteringAtZoom"] = 2;
viz_Options.chartOptions["controlSearchZoom"] = 5;
viz_Options.chartOptions["mapZoomLevel"] = 4;
viz_Options.chartOptions["tileLayerZoomMax"] = 5;
viz_Options.chartOptions["tileLayerZoomMin"] = 2;
c.set("viz_Options",viz_Options);

});

Thank You,
Helical Insight.