From aa127dbff3e066ccc41fdc606ae2446a7f2ea383 Mon Sep 17 00:00:00 2001 From: mtmail Date: Tue, 9 Sep 2025 16:29:18 +0200 Subject: [PATCH] details page: entrances list and on map (#302) --- src/pages/DetailsPage.svelte | 53 ++++++++++++++---------------------- 1 file changed, 21 insertions(+), 32 deletions(-) diff --git a/src/pages/DetailsPage.svelte b/src/pages/DetailsPage.svelte index bc83ea0..5e21553 100644 --- a/src/pages/DetailsPage.svelte +++ b/src/pages/DetailsPage.svelte @@ -31,9 +31,9 @@ class: search_params.get('class'), keywords: search_params.get('keywords'), addressdetails: 1, + entrances: 1, hierarchy: (search_params.get('hierarchy') === '1' ? 1 : 0), group_hierarchy: 1, - entrances: (search_params.get('entrances') === '1' ? 1 : 0), polygon_geojson: 1, format: 'json' }; @@ -204,6 +204,26 @@ {/each} {/if} +

Entrances

+ {#if aPlace.entrances && aPlace.entrances.length} + + + Entrance Type + OSM + Extra Tags + + {#each aPlace.entrances as entrance, i} + + {i + 1} + {entrance.type} + + + + {/each} + {:else} + Place does not have entrances + {/if} + {#if !reverse_only}

Keywords

{#if api_request_params.keywords} @@ -269,37 +289,6 @@ {/if} -

Entrances

- {#if api_request_params.entrances} - {#if aPlace.entrances && aPlace.entrances.length} - - - Entrance Type - OSM - Extra Tags - - {#each aPlace.entrances as entrance, i} - - {i + 1} - {entrance.type} - - - - {/each} - {:else} - Place does not have entrances - {/if} - {:else} - - - display entraces - - - {/if} - - - -- 2.39.5