forked from MapComplete/MapComplete
		
	Studio: some more tweaks
This commit is contained in:
		
							parent
							
								
									69a7c9efa3
								
							
						
					
					
						commit
						d749b5c68f
					
				
					 8 changed files with 577 additions and 19 deletions
				
			
		|  | @ -144,6 +144,14 @@ class LayerOverviewUtils extends Script { | |||
|         includeInlineLayers = true | ||||
|     ): string[] { | ||||
|         const publicLayerIds = [] | ||||
|         if (!Array.isArray(themeFile.layers)) { | ||||
|             throw ( | ||||
|                 "Cannot iterate over 'layers' of " + | ||||
|                 themeFile.id + | ||||
|                 "; it is a " + | ||||
|                 typeof themeFile.layers | ||||
|             ) | ||||
|         } | ||||
|         for (const publicLayer of themeFile.layers) { | ||||
|             if (typeof publicLayer === "string") { | ||||
|                 publicLayerIds.push(publicLayer) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue