Themes: fix cycle rental which dissappears

This commit is contained in:
Pieter Vander Vennet 2023-10-16 12:54:41 +02:00
parent 65a758bdff
commit efce134a6c
3 changed files with 11 additions and 10 deletions

View file

@ -68,14 +68,14 @@
"bicycle_rental!=docking_station" "bicycle_rental!=docking_station"
] ]
} }
} },
"name": null
} }
}, },
{ {
"#": "All bicycle rental at a high zoom level, to avoid duplicates", "#": "All bicycle rental at a high zoom level, to avoid duplicates",
"builtin": "bicycle_rental", "builtin": "bicycle_rental",
"override": { "override": {
"name": null,
"filter": { "filter": {
"sameAs": "bicycle_rental_non_docking" "sameAs": "bicycle_rental_non_docking"
}, },
@ -135,4 +135,4 @@
} }
} }
] ]
} }

View file

@ -162,16 +162,16 @@
<LoginButton osmConnection={state.osmConnection} slot="not-logged-in"> <LoginButton osmConnection={state.osmConnection} slot="not-logged-in">
<Tr slot="message" t={Translations.t.general.add.pleaseLogin} /> <Tr slot="message" t={Translations.t.general.add.pleaseLogin} />
</LoginButton> </LoginButton>
{#if $isLoading} {#if $zoom < Constants.minZoomLevelToAddNewPoint}
<div class="alert">
<Loading>
<Tr t={Translations.t.general.add.stillLoading} />
</Loading>
</div>
{:else if $zoom < Constants.minZoomLevelToAddNewPoint}
<div class="alert"> <div class="alert">
<Tr t={Translations.t.general.add.zoomInFurther} /> <Tr t={Translations.t.general.add.zoomInFurther} />
</div> </div>
{:else if $isLoading}
<div class="alert">
<Loading>
<Tr t={Translations.t.general.add.stillLoading} />
</Loading>
</div>
{:else if selectedPreset === undefined} {:else if selectedPreset === undefined}
<!-- First, select the correct preset --> <!-- First, select the correct preset -->
<PresetList <PresetList

View file

@ -30,6 +30,7 @@
if (flayer.isDisplayed.data === false) { if (flayer.isDisplayed.data === false) {
// The layer is not displayed... // The layer is not displayed...
if (!state.featureSwitches.featureSwitchFilter.data) { if (!state.featureSwitches.featureSwitchFilter.data) {
console.log("Not showing presets for layer", flayer.layerDef.id, "as not displayed and featureSwitchFilter.data is set",state.featureSwitches.featureSwitchFilter.data)
// ...and we cannot enable the layer control -> we skip, as these presets can never be shown anyway // ...and we cannot enable the layer control -> we skip, as these presets can never be shown anyway
continue continue
} }