Bugfix: camera with direction wouldn't show up

This commit is contained in:
Pieter Vander Vennet 2020-11-18 13:41:31 +01:00
parent de305ecab9
commit 5e6f54f660
5 changed files with 13 additions and 21 deletions

View file

@ -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) []
}

View file

@ -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;
}

View file

@ -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});
}

View file

@ -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;
}
*/

View file

@ -420,6 +420,11 @@ a {
}
.leaflet-div-icon svg {
width: calc(100%);
height: calc(100%);
}
/****** ShareScreen *****/
.literal-code {