mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-28 17:29:36 +02:00
Open in Apple Maps or Google Maps
This patch provides the additional option to open a location in Google maps as an alternative to Apple Maps.
This commit is contained in:
parent
56bbbb0ffb
commit
f6097a2d60
1 changed files with 15 additions and 6 deletions
|
@ -458,12 +458,21 @@
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if adventure.longitude && adventure.latitude}
|
{#if adventure.longitude && adventure.latitude}
|
||||||
<a
|
<div class="flex flex-wrap gap-2 items-center">
|
||||||
class="btn btn-neutral btn-sm max-w-32"
|
<span>{$t('adventures.open_in_maps')}:</span>
|
||||||
href={`https://maps.apple.com/?q=${adventure.latitude},${adventure.longitude}`}
|
<a
|
||||||
target="_blank"
|
class="btn btn-neutral text-base btn-sm max-w-32"
|
||||||
rel="noopener noreferrer">{$t('adventures.open_in_maps')}</a
|
href={`https://maps.apple.com/?q=${adventure.latitude},${adventure.longitude}`}
|
||||||
>
|
target="_blank"
|
||||||
|
rel="noopener noreferrer">Apple</a
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
class="btn btn-neutral text-base btn-sm max-w-32"
|
||||||
|
href={`https://maps.google.com/?q=${adventure.latitude},${adventure.longitude}`}
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer">Google</a
|
||||||
|
>
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<MapLibre
|
<MapLibre
|
||||||
style="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json"
|
style="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue