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:
@@ -458,12 +458,21 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if adventure.longitude && adventure.latitude}
|
{#if adventure.longitude && adventure.latitude}
|
||||||
|
<div class="flex flex-wrap gap-2 items-center">
|
||||||
|
<span>{$t('adventures.open_in_maps')}:</span>
|
||||||
<a
|
<a
|
||||||
class="btn btn-neutral btn-sm max-w-32"
|
class="btn btn-neutral text-base btn-sm max-w-32"
|
||||||
href={`https://maps.apple.com/?q=${adventure.latitude},${adventure.longitude}`}
|
href={`https://maps.apple.com/?q=${adventure.latitude},${adventure.longitude}`}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer">{$t('adventures.open_in_maps')}</a
|
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user