{@const link = waypoint.item.links?.[0]} {#if link?.href} {waypoint.item.name ?? link.href} {:else} {waypoint.item.name ?? i18n._('gpx.waypoint')} {/if}
{#if symbolKey} {#if symbols[symbolKey].icon} {@const Icon = symbols[symbolKey].icon} {:else} {/if} {i18n._(`gpx.symbol.${symbolKey}`)} {/if} {waypoint.item.lat.toFixed(6)}° {waypoint.item.lng.toFixed(6)}°
{#if waypoint.item.desc} {@html sanitize(waypoint.item.desc)} {/if} {#if waypoint.item.cmt && waypoint.item.cmt !== waypoint.item.desc} {@html sanitize(waypoint.item.cmt)} {/if}
{#if $currentTool === Tool.WAYPOINT && selected} {/if}