<script lang="ts">
	import type { Location } from "$lib/saved.svelte";
	import { stores } from "$lib/services/stores.svelte";
	import MapLocationMarker from "./MapLocationMarker.svelte";

	const locations = stores<Location>("location");
</script>

{#each locations.current as location (location.data.lat + "-" + location.data.lng)}
	<MapLocationMarker store={location.data} />
{/each}