@@ -100,7 +100,9 @@ function initMap() {
100100 minZoom : 5 , // Prevent zooming out too far
101101 maxZoom : 19 , // Allow detailed street-level zoom
102102 maxBounds : australiaBounds , // Restrict panning to Australia
103- maxBoundsViscosity : 0.8 // Make bounds "sticky" (0.0 = soft, 1.0 = hard boundaries)
103+ maxBoundsViscosity : 0.8 , // Make bounds "sticky" (0.0 = soft, 1.0 = hard boundaries)
104+ zoomAnimation : false , // Disable zoom animation so markers update instantly
105+ fadeAnimation : true // Smooth tile fade prevents flicker
104106 } ) ;
105107
106108 // Define multiple base map layers
@@ -147,7 +149,8 @@ function initMap() {
147149 // Initialize layers
148150 markersLayer = L . markerClusterGroup ( {
149151 chunkedLoading : true ,
150- chunkDelay : 50 , // Reduced from default 200ms for faster loading
152+ chunkDelay : 1 , // Near-instant chunk processing (1ms)
153+ chunkInterval : 200 , // Process 200 markers per chunk for faster completion
151154 chunkProgress : null , // Disable progress updates for better performance
152155 spiderfyOnMaxZoom : true ,
153156 showCoverageOnHover : false ,
@@ -157,7 +160,8 @@ function initMap() {
157160 return zoom < 10 ? 80 : ( zoom < 13 ? 60 : 50 ) ;
158161 } ,
159162 disableClusteringAtZoom : 19 , // Disable clustering when fully zoomed in
160- animate : false , // Disable animations for faster rendering
163+ animate : true , // Enable smooth animations during zoom
164+ animateAddingMarkers : true , // Enable fade-in animations for markers
161165 removeOutsideVisibleBounds : true , // Remove markers outside viewport
162166 iconCreateFunction : function ( cluster ) {
163167 const childCount = cluster . getChildCount ( ) ;
0 commit comments