forked from MapComplete/MapComplete
		
	Full code cleanup
This commit is contained in:
		
							parent
							
								
									3a4a2a2016
								
							
						
					
					
						commit
						fa971ffbbf
					
				
					 300 changed files with 16352 additions and 19284 deletions
				
			
		|  | @ -45,6 +45,7 @@ export default class TagRenderingConfig { | |||
|         readonly hideInAnswer: boolean | TagsFilter | ||||
|         readonly addExtraTags: Tag[] | ||||
|     }[] | ||||
| 
 | ||||
|     constructor(json: string | TagRenderingConfigJson, context?: string) { | ||||
|         if (json === undefined) { | ||||
|             throw "Initing a TagRenderingConfig with undefined in " + context; | ||||
|  | @ -373,8 +374,8 @@ export default class TagRenderingConfig { | |||
|                     return mapping.then; | ||||
|                 } | ||||
|                 if (mapping.if.matchesProperties(tags)) { | ||||
|                     if(this.id === "uk_addresses_placename"){ | ||||
|                     console.log("Matched",mapping.if,"with ",tags["addr:place"]) | ||||
|                     if (this.id === "uk_addresses_placename") { | ||||
|                         console.log("Matched", mapping.if, "with ", tags["addr:place"]) | ||||
|                     } | ||||
|                     return mapping.then; | ||||
|                 } | ||||
|  | @ -487,12 +488,11 @@ export default class TagRenderingConfig { | |||
|             mappings = new List( | ||||
|                 this.mappings.map(m => { | ||||
|                         let txt = "**" + m.then.txt + "** corresponds with " + m.if.asHumanString(true, false, {}); | ||||
|                         if(m.hideInAnswer === true) | ||||
|                         { | ||||
|                         if (m.hideInAnswer === true) { | ||||
|                             txt += "_This option cannot be chosen as answer_" | ||||
|                         } | ||||
|                         if(m.ifnot !== undefined){ | ||||
|                             txt += "Unselecting this answer will add "+m.ifnot.asHumanString(true, false, {}) | ||||
|                         if (m.ifnot !== undefined) { | ||||
|                             txt += "Unselecting this answer will add " + m.ifnot.asHumanString(true, false, {}) | ||||
|                         } | ||||
|                         return txt; | ||||
|                     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue