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