forked from MapComplete/MapComplete
		
	Refactor isShown into a tagsfilter
This commit is contained in:
		
							parent
							
								
									dab0565a8b
								
							
						
					
					
						commit
						b8bca0287d
					
				
					 13 changed files with 64 additions and 123 deletions
				
			
		|  | @ -39,7 +39,7 @@ export default class LayerConfig extends WithContextLoader { | |||
|     public readonly calculatedTags: [string, string, boolean][]; | ||||
|     public readonly doNotDownload: boolean; | ||||
|     public readonly passAllFeatures: boolean; | ||||
|     public readonly isShown: TagRenderingConfig; | ||||
|     public readonly isShown: TagsFilter; | ||||
|     public minzoom: number; | ||||
|     public minzoomVisible: number; | ||||
|     public readonly maxzoom: number; | ||||
|  | @ -302,7 +302,7 @@ export default class LayerConfig extends WithContextLoader { | |||
|         }); | ||||
| 
 | ||||
|         this.title = this.tr("title", undefined); | ||||
|         this.isShown = this.tr("isShown", "yes"); | ||||
|         this.isShown = TagUtils.TagD(json.isShown, context+".isShown") | ||||
| 
 | ||||
|         this.deletion = null; | ||||
|         if (json.deletion === true) { | ||||
|  | @ -478,7 +478,7 @@ export default class LayerConfig extends WithContextLoader { | |||
|     } | ||||
| 
 | ||||
|     AllTagRenderings(): TagRenderingConfig[] { | ||||
|         return Utils.NoNull([...this.tagRenderings, ...this.titleIcons, this.title, this.isShown]) | ||||
|         return Utils.NoNull([...this.tagRenderings, ...this.titleIcons, this.title]) | ||||
|     } | ||||
| 
 | ||||
|     public isLeftRightSensitive(): boolean { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue