Merge pull request #593 from lkiesow/google-maps
Open in Apple Maps or Google Maps
This commit is contained in:
@@ -458,12 +458,29 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if adventure.longitude && adventure.latitude}
|
{#if adventure.longitude && adventure.latitude}
|
||||||
|
<div>
|
||||||
|
{$t('adventures.open_in_maps')}:
|
||||||
|
<div class="flex flex-wrap gap-2">
|
||||||
<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
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
class="btn btn-neutral text-base btn-sm max-w-32"
|
||||||
|
href={`https://www.openstreetmap.org/?mlat=${adventure.latitude}&mlon=${adventure.longitude}`}
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer">OSM</a
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</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