feat: Add "Open in Maps" button for adventures with location coordinates

This commit is contained in:
Sean Morley
2025-02-22 20:36:25 -05:00
parent b61083f7df
commit d5311bb71e
3 changed files with 22 additions and 4 deletions

View File

@@ -436,6 +436,12 @@
</div>
</div>
{/if}
<a
class="btn btn-neutral btn-sm max-w-32"
href={`https://maps.apple.com/?q=${adventure.latitude},${adventure.longitude}`}
target="_blank"
rel="noopener noreferrer">{$t('adventures.open_in_maps')}</a
>
<MapLibre
style="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json"
class="flex items-center self-center justify-center aspect-[9/16] max-h-[70vh] sm:aspect-video sm:max-h-full w-10/12 rounded-lg"