diff --git a/Customizations/JSON/LayerConfigJson.ts b/Customizations/JSON/LayerConfigJson.ts index 98df035..ac1b338 100644 --- a/Customizations/JSON/LayerConfigJson.ts +++ b/Customizations/JSON/LayerConfigJson.ts @@ -121,6 +121,12 @@ export interface LayerConfigJson { /** * All the tag renderings. * A tag rendering is a block that either shows the known value or asks a question. + * + * Refer to the class `TagRenderingConfigJson` to see the possibilities. + * + * Note that we can also use a string here - where the string refers to a tagrenering defined in `assets/questions/questions.json`, + * where a few very general questions are defined e.g. website, phone number, ... + * */ tagRenderings?: (string | TagRenderingConfigJson) [] } \ No newline at end of file diff --git a/InitUiElements.ts b/InitUiElements.ts index e4ac702..551704c 100644 --- a/InitUiElements.ts +++ b/InitUiElements.ts @@ -161,7 +161,7 @@ export class InitUiElements { if (feature === undefined) { State.state.fullScreenMessage.setData(undefined); } - if (feature?.properties === undefined) { + if (feature?.properties === undefined) { return; } const data = feature.properties; @@ -175,7 +175,7 @@ export class InitUiElements { continue; } - if(layer.title === null && layer.tagRenderings.length === 0){ + if((layer.title ?? null) === null && layer.tagRenderings.length === 0){ continue; } diff --git a/Logic/Leaflet/GeoLocationHandler.ts b/Logic/Leaflet/GeoLocationHandler.ts index e94b23e..d201fdf 100644 --- a/Logic/Leaflet/GeoLocationHandler.ts +++ b/Logic/Leaflet/GeoLocationHandler.ts @@ -25,14 +25,10 @@ export class GeoLocationHandler extends UIElement { function onAccuratePositionProgress(e) { - console.log(e.accuracy); - console.log(e.latlng); State.state.currentGPSLocation.setData({latlng: e.latlng, accuracy: e.accuracy}); } function onAccuratePositionFound(e) { - console.log(e.accuracy); - console.log(e.latlng); State.state.currentGPSLocation.setData({latlng: e.latlng, accuracy: e.accuracy}); } diff --git a/assets/themes/surveillance_cameras/custom_theme.css b/assets/themes/surveillance_cameras/custom_theme.css index 97a49d8..02e139e 100644 --- a/assets/themes/surveillance_cameras/custom_theme.css +++ b/assets/themes/surveillance_cameras/custom_theme.css @@ -9,18 +9,3 @@ html { --foreground-color: white !important; --shadow-color: #0f0 !important; } - -#innercolor { - stop-color:#ff0000 -} -.leaflet-div-icon svg { - width: calc(100% - 3px); - height: calc(100% + 3px); -} -/* -.leaflet-div-icon svg path { - fill: none !important; - stroke-width: 1px !important; - stroke: #0f0 !important; -} -*/ diff --git a/index.css b/index.css index ed793ac..8afce07 100644 --- a/index.css +++ b/index.css @@ -420,6 +420,11 @@ a { } +.leaflet-div-icon svg { + width: calc(100%); + height: calc(100%); +} + /****** ShareScreen *****/ .literal-code {