feat(info): route without successful overpass result
This commit is contained in:
@ -99,6 +99,18 @@
|
|||||||
>
|
>
|
||||||
{m["sidebar.info.dropped"]()}
|
{m["sidebar.info.dropped"]()}
|
||||||
</SidebarHeader>
|
</SidebarHeader>
|
||||||
|
<div id="actions">
|
||||||
|
<Button
|
||||||
|
onclick={() => {
|
||||||
|
view.switch("route", {
|
||||||
|
to: lat + "," + lng,
|
||||||
|
});
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<RouteIcon />
|
||||||
|
{m["sidebar.info.route"]()}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
<p>{m.loading()}</p>
|
<p>{m.loading()}</p>
|
||||||
{:then res}
|
{:then res}
|
||||||
{#if res.elements.length === 0}
|
{#if res.elements.length === 0}
|
||||||
@ -305,6 +317,18 @@
|
|||||||
>
|
>
|
||||||
Dropped Pin
|
Dropped Pin
|
||||||
</SidebarHeader>
|
</SidebarHeader>
|
||||||
|
<div id="actions">
|
||||||
|
<Button
|
||||||
|
onclick={() => {
|
||||||
|
view.switch("route", {
|
||||||
|
to: lat + "," + lng,
|
||||||
|
});
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<RouteIcon />
|
||||||
|
{m["sidebar.info.route"]()}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
<p>Error: {err.message}</p>
|
<p>Error: {err.message}</p>
|
||||||
{/await}
|
{/await}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user