forked from MapComplete/MapComplete
		
	Fix #26
This commit is contained in:
		
							parent
							
								
									c87c014045
								
							
						
					
					
						commit
						b2704d0ab8
					
				
					 3 changed files with 25 additions and 18 deletions
				
			
		
							
								
								
									
										18
									
								
								index.ts
									
										
									
									
									
								
							
							
						
						
									
										18
									
								
								index.ts
									
										
									
									
									
								
							|  | @ -26,10 +26,10 @@ let dryRun = false; | |||
| if (location.hostname === "localhost" || location.hostname === "127.0.0.1") { | ||||
| 
 | ||||
|     // Set to true if testing and changes should NOT be saved
 | ||||
|    // dryRun = true;
 | ||||
|     // dryRun = true;
 | ||||
|     // If you have a testfile somewhere, enable this to spoof overpass
 | ||||
|     // This should be hosted independantly, e.g. with `cd assets; webfsd -p 8080` + a CORS plugin to disable cors rules
 | ||||
|    // Overpass.testUrl = "http://127.0.0.1:8080/test.json";
 | ||||
|     Overpass.testUrl = null; // "http://127.0.0.1:8080/test.json";
 | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
|  | @ -115,7 +115,19 @@ const flayers: FilteredLayer[] = [] | |||
| 
 | ||||
| for (const layer of questSetToRender.layers) { | ||||
| 
 | ||||
|     const flayer = layer.asLayer(bm, allElements, changes, osmConnection.userDetails, selectedElement, leftMessage); | ||||
|     const generateInfo = (tagsES) => { | ||||
| 
 | ||||
|         return new FeatureInfoBox( | ||||
|             tagsES, | ||||
|             layer.elementsToShow, | ||||
|             layer.questions, | ||||
|             changes, | ||||
|             osmConnection.userDetails | ||||
|         ) | ||||
|     }; | ||||
| 
 | ||||
|     const flayer = layer.asLayer(bm, allElements, changes, osmConnection.userDetails, selectedElement, | ||||
|         generateInfo); | ||||
| 
 | ||||
|     const addButton = { | ||||
|         name: layer.name, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue