Now checking marker clustering flag.
authorChuck Scott <cscott@gaslightmedia.com>
Mon, 20 Aug 2018 21:12:25 +0000 (17:12 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Mon, 20 Aug 2018 21:12:25 +0000 (17:12 -0400)
views/front/members/list.html

index e84bcac..d436223 100755 (executable)
                 var leafletTileServer = '{$settings.leaflet_tile_server}/{$settings.leaflet_tile_server_key}/' + {literal}'{z}/{x}/{y}.png'{/literal};
                 var leafletMinZoom = 3;
                 var leafletMaxZoom = 19;
+                var clusterRadiusMax = 40;
                 var geocoder;
     
                 // Loading features
     
     
             {if $mapItems}
-    
+
+              {if $settings.use_cluster_markers}
                 var markerGroup = L.markerClusterGroup({
-                    maxClusterRadius: 40
+                    maxClusterRadius: clusterRadiusMax
                 });
+              {else}
+                var markerGroup = L.featureGroup({
+                    maxClusterRadius: clusterRadiusMax
+                });
+              {/if}
+        
                             
               {foreach $mapItems as $m}
                 {if $m.lat != 0 && $m.lon != 0}