Themes: add toilet information in food and shops

This commit is contained in:
Pieter Vander Vennet 2025-04-21 04:10:51 +02:00
parent 92eca242ec
commit 3bc8eae6b1
9 changed files with 174 additions and 15 deletions

View file

@ -14,7 +14,7 @@ import NearbyImagesCollapsed from "../Image/NearbyImagesCollapsed.svelte"
class NearbyImageVis implements SpecialVisualizationSvelte {
// Class must be in SpecialVisualisations due to weird cyclical import that breaks the tests
args: [
args = [
{
name: "mode",
defaultValue: "closed",
@ -26,7 +26,7 @@ class NearbyImageVis implements SpecialVisualizationSvelte {
doc: "If 'readonly' or 'yes', will not show the 'link'-button",
},
]
group: "images"
group = "images"
docs =
"A component showing nearby images loaded from various online services such as Mapillary. In edit mode and when used on a feature, the user can select an image to add to the feature"
funcName = "nearby_images"

View file

@ -97,7 +97,7 @@ export interface SpecialVisualization {
defaultValue?: string
doc: string
required?: false | boolean,
type?: "key"
type?: "key" | string
}[]
readonly getLayerDependencies?: (argument: string[]) => string[]
@ -112,7 +112,7 @@ export interface SpecialVisualization {
): BaseUIElement
}
export interface SpecialVisualizationSvelte {
export interface SpecialVisualizationSvelte extends SpecialVisualization {
readonly funcName: string
readonly docs: string
/**