forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
8109c13b38
commit
297bb1c498
185 changed files with 2826 additions and 5874 deletions
|
|
@ -7,12 +7,10 @@
|
|||
* An element showing s
|
||||
*/
|
||||
export let state: ThemeViewState
|
||||
let layers = state.theme.layers.filter(l => l.isNormal())
|
||||
|
||||
let layers = state.theme.layers.filter((l) => l.isNormal())
|
||||
</script>
|
||||
|
||||
<Accordion>
|
||||
|
||||
{#each layers as layer (layer.id)}
|
||||
<LayerStatistics {state} {layer} />
|
||||
{/each}
|
||||
|
|
|
|||
|
|
@ -18,12 +18,16 @@
|
|||
let elements: Feature[] = state.perLayer.get(layer.id).GetFeaturesWithin($bbox)
|
||||
$: elements = state.perLayer.get(layer.id).GetFeaturesWithin($bbox)
|
||||
|
||||
let trs = layer.tagRenderings.filter(tr => tr.question)
|
||||
let trs = layer.tagRenderings.filter((tr) => tr.question)
|
||||
</script>
|
||||
|
||||
<AccordionItem paddingDefault="p-2" inactiveClass="text-black" defaultClass="w-full flex-grow justify-start">
|
||||
<AccordionItem
|
||||
paddingDefault="p-2"
|
||||
inactiveClass="text-black"
|
||||
defaultClass="w-full flex-grow justify-start"
|
||||
>
|
||||
<div slot="header" class="flex items-center gap-x-2">
|
||||
<div class="w-8 h-8 inline-block">
|
||||
<div class="inline-block h-8 w-8">
|
||||
<DefaultIcon {layer} />
|
||||
</div>
|
||||
<Tr t={layer.name} />
|
||||
|
|
@ -35,12 +39,15 @@
|
|||
{:else if elements.length === 0}
|
||||
No features in view
|
||||
{:else}
|
||||
<div class="flex flex-wrap w-full gap-y-4 gap-x-4">
|
||||
|
||||
<div class="flex w-full flex-wrap gap-x-4 gap-y-4">
|
||||
{#each trs as tr}
|
||||
<ToSvelte construct={() => new TagRenderingChart(elements, tr, {
|
||||
chartclasses: "w-full self-center",includeTitle: true
|
||||
}).SetClass(tr.multiAnswer ? "w-128": "w-96") } />
|
||||
<ToSvelte
|
||||
construct={() =>
|
||||
new TagRenderingChart(elements, tr, {
|
||||
chartclasses: "w-full self-center",
|
||||
includeTitle: true,
|
||||
}).SetClass(tr.multiAnswer ? "w-128" : "w-96")}
|
||||
/>
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue