{#if leaflet && mapMarkers} {@const { Map, TileLayer, AssetMarkerCluster, Control } = leaflet} OpenStreetMap' }} /> onViewAssets(event.detail.assets)} /> {/if}
{#if $isViewingAssetStoreState} 1} on:navigate-next={navigateNext} on:navigate-previous={navigatePrevious} on:close={() => { assetInteractionStore.setIsViewingAsset(false); }} /> {/if} {#if showSettingsModal} (showSettingsModal = false)} on:save={async ({ detail }) => { const shouldUpdate = detail.onlyFavorites !== $mapSettings.onlyFavorites; showSettingsModal = false; $mapSettings = detail; if (shouldUpdate) { mapMarkers = await loadMapMarkers(); } }} /> {/if}