forked from MapComplete/MapComplete
		
	Chore: fix build
This commit is contained in:
		
							parent
							
								
									d322cba3b3
								
							
						
					
					
						commit
						07d5c85971
					
				
					 3 changed files with 18 additions and 8 deletions
				
			
		|  | @ -3,6 +3,8 @@ | |||
|    id="Layer_1" | ||||
|    data-name="Layer 1" | ||||
|    viewBox="0 0 400 400" | ||||
|    height="400" | ||||
|    width="400" | ||||
|    version="1.1" | ||||
|    sodipodi:docname="cycle-infra.svg" | ||||
|    inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)" | ||||
|  |  | |||
| Before Width: | Height: | Size: 9.5 KiB After Width: | Height: | Size: 9.5 KiB | 
|  | @ -408,7 +408,13 @@ | |||
|           "osmTags": { | ||||
|             "and": [ | ||||
|               "information=guidepost", | ||||
|               "bicycle=yes" | ||||
|               { | ||||
|                 "or": [ | ||||
|                   "bicycle=yes", | ||||
|                   "guidepost~.*bicycle", | ||||
|                   "guidepost~.*mtb.*" | ||||
|                 ] | ||||
|               } | ||||
|             ] | ||||
|           } | ||||
|         }, | ||||
|  | @ -417,13 +423,7 @@ | |||
|             "tags": [ | ||||
|               "tourism=information", | ||||
|               "information=guidepost", | ||||
|               { | ||||
|                 "or": [ | ||||
|                   "bicycle=yes", | ||||
|                   "guidepost~.*bicycle", | ||||
|                   "guidepost~.*mtb.*" | ||||
|                 ] | ||||
|               } | ||||
|               "bicycle=yes" | ||||
|             ] | ||||
|           } | ||||
|         ], | ||||
|  |  | |||
|  | @ -194,6 +194,14 @@ export default class LayerConfig extends WithContextLoader { | |||
|                 } | ||||
|             } | ||||
| 
 | ||||
|             if (!Array.isArray(pr.tags)) { | ||||
|                 throw context + ": Preset " + i + " tags are not an array" | ||||
|             } | ||||
| 
 | ||||
|             if (pr.tags.some(t => typeof t !== "string")) { | ||||
|                 throw context + ": Preset " + i + ": all tags should be a simple tag (thus: a string) which should also be uploadable. A non-string type is found" | ||||
|             } | ||||
| 
 | ||||
|             const config: PresetConfig = { | ||||
|                 title: Translations.T(pr.title, `${translationContext}.presets.${i}.title`), | ||||
|                 tags: pr.tags.map((t) => TagUtils.SimpleTag(t)), | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue