forked from MapComplete/MapComplete
		
	Add more consistency checks, slight refactoring of theme conversions
This commit is contained in:
		
							parent
							
								
									5d884a97f9
								
							
						
					
					
						commit
						7001216ab7
					
				
					 8 changed files with 457 additions and 276 deletions
				
			
		|  | @ -45,6 +45,9 @@ export default class CreateNoteImportLayer extends Conversion<LayerConfigJson, L | |||
| 
 | ||||
|         const pointRenderings = (layerJson.mapRendering ?? []).filter(r => r !== null && r["location"] !== undefined); | ||||
|         const firstRender = <PointRenderingConfigJson>(pointRenderings [0]) | ||||
|         if(firstRender === undefined){ | ||||
|             throw `Layer ${layerJson.id} does not have a pointRendering: `+context | ||||
|         } | ||||
|         const icon = firstRender.icon | ||||
|         const iconBadges = [] | ||||
|         const title = layer.presets[0].title | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue