forked from MapComplete/MapComplete
		
	Bugfix: camera with direction wouldn't show up
This commit is contained in:
		
							parent
							
								
									de305ecab9
								
							
						
					
					
						commit
						5e6f54f660
					
				
					 5 changed files with 13 additions and 21 deletions
				
			
		| 
						 | 
					@ -121,6 +121,12 @@ export interface LayerConfigJson {
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * All the tag renderings.
 | 
					     * All the tag renderings.
 | 
				
			||||||
     * A tag rendering is a block that either shows the known value or asks a question.
 | 
					     * 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) []
 | 
					    tagRenderings?: (string | TagRenderingConfigJson) []
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -175,7 +175,7 @@ export class InitUiElements {
 | 
				
			||||||
                        continue;
 | 
					                        continue;
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    
 | 
					                    
 | 
				
			||||||
                    if(layer.title === null && layer.tagRenderings.length === 0){
 | 
					                    if((layer.title ?? null) === null && layer.tagRenderings.length === 0){
 | 
				
			||||||
                        continue;
 | 
					                        continue;
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    
 | 
					                    
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -25,14 +25,10 @@ export class GeoLocationHandler extends UIElement {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        function onAccuratePositionProgress(e) {
 | 
					        function onAccuratePositionProgress(e) {
 | 
				
			||||||
            console.log(e.accuracy);
 | 
					 | 
				
			||||||
            console.log(e.latlng);
 | 
					 | 
				
			||||||
            State.state.currentGPSLocation.setData({latlng: e.latlng, accuracy: e.accuracy});
 | 
					            State.state.currentGPSLocation.setData({latlng: e.latlng, accuracy: e.accuracy});
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        function onAccuratePositionFound(e) {
 | 
					        function onAccuratePositionFound(e) {
 | 
				
			||||||
            console.log(e.accuracy);
 | 
					 | 
				
			||||||
            console.log(e.latlng);
 | 
					 | 
				
			||||||
            State.state.currentGPSLocation.setData({latlng: e.latlng, accuracy: e.accuracy});
 | 
					            State.state.currentGPSLocation.setData({latlng: e.latlng, accuracy: e.accuracy});
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,18 +9,3 @@ html {
 | 
				
			||||||
    --foreground-color: white !important;
 | 
					    --foreground-color: white !important;
 | 
				
			||||||
    --shadow-color: #0f0 !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;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
*/
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -420,6 +420,11 @@ a {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.leaflet-div-icon svg {
 | 
				
			||||||
 | 
					    width: calc(100%);
 | 
				
			||||||
 | 
					    height: calc(100%);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/****** ShareScreen *****/
 | 
					/****** ShareScreen *****/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.literal-code {
 | 
					.literal-code {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue