Skip to content

Commit

Permalink
add minimum cluster size
Browse files Browse the repository at this point in the history
  • Loading branch information
czue committed Nov 12, 2024
1 parent b164959 commit 2d8cd8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commcare_connect/templates/reports/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ <h3 class="my-2">Service Delivery Map</h3>
</script>
<script type="module">
let map;
const minClusterSize = 5;
const mapLoading = document.getElementById('map-loading');

window.refreshMapData = async () => {
Expand Down Expand Up @@ -198,6 +199,7 @@ <h3 class="my-2">Service Delivery Map</h3>
cluster: true,
clusterMaxZoom: 12,
clusterRadius: 80,
clusterMinPoints: minClusterSize,
clusterProperties: {
// keep separate counts for each status category in a cluster
'approved': ['+', ['case', approved, 1, 0]],
Expand Down

0 comments on commit 2d8cd8f

Please sign in to comment.