Remove duplicate initMap() function call from front list view file
authorLaury GvR <laury@gaslightmedia.com>
Fri, 7 Dec 2018 19:17:05 +0000 (14:17 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 7 Dec 2018 19:17:05 +0000 (14:17 -0500)
views/front/members/list.html

index f0fedf9..65857cf 100755 (executable)
 
             function initMap() {
 
+                console.log("e - ");
+
                 var leafletMap = L.map('LeafletMapContainer', {
                     gestureHandling: true
                 });
                     leafletMap.panTo(leafletMap.unproject(px),{ animate: true });
                 });
 
-
+                console.log("r - ");
             }
 
       {/if}
                 }
             });
             {if $view != 'no-map'}
-                {if $settings.list_map_show_opened }
+                {if $settings.list_map_show_opened || $view == 'map'}
                     // Start with map opened
                     initMap();
                     mapInitialized = true;
                 {/if}
-                initMap();
             {/if}
 
             // Processes click-through counts for website links