{#if $filterResults.length > 0}
Pick a filter below
{#each $filterResults as filterResult (filterResult)}
{/each}
{/if}
{#if $searchTerm.length > 0}
Locations
{/if}
{#if $searchTerm.length > 0 && $results === undefined}
{:else if $results?.length > 0}
{#each $results as entry (entry)}
{/each}
{:else if $searchTerm.length > 0 || $recentlySeen?.length > 0 || $recentThemes?.length > 0}
{#if $searchTerm.length > 0}
{/if}
{#if $recentlySeen?.length > 0}
{#each $recentlySeen as entry}
{/each}
{/if}
{#if $recentThemes?.length > 0 && $allowOtherThemes}
{#each $recentThemes as themeId (themeId)}
{/each}
{/if}
{/if}
{#if $themeResults.length > 0}
Other maps
{#each $themeResults as entry}
{/each}
{/if}