forked from MapComplete/MapComplete
		
	Add unused node removal
This commit is contained in:
		
							parent
							
								
									4131e9b9e2
								
							
						
					
					
						commit
						adade2e8b0
					
				
					 12 changed files with 289 additions and 96 deletions
				
			
		|  | @ -232,7 +232,7 @@ ${Utils.special_visualizations_importRequirementDocs} | |||
|         onCancel: () => void): BaseUIElement { | ||||
|         const self = this; | ||||
|         const confirmationMap = Minimap.createMiniMap({ | ||||
|             allowMoving: false, | ||||
|             allowMoving: state.featureSwitchIsDebugging.data ?? false, | ||||
|             background: state.backgroundLayer | ||||
|         }) | ||||
|         confirmationMap.SetStyle("height: 20rem; overflow: hidden").SetClass("rounded-xl") | ||||
|  | @ -297,6 +297,13 @@ export class ConflateButton extends AbstractImportButton { | |||
|         return feature.geometry.type === "LineString" || (feature.geometry.type === "Polygon" && feature.geometry.coordinates.length === 1) | ||||
|     } | ||||
| 
 | ||||
|     getLayerDependencies(argsRaw: string[]): string[] { | ||||
|         const deps = super.getLayerDependencies(argsRaw); | ||||
|         // Force 'type_node' as dependency
 | ||||
|         deps.push("type_node") | ||||
|         return deps; | ||||
|     } | ||||
| 
 | ||||
|     constructElement(state: FeaturePipelineState, | ||||
|                      args: { max_snap_distance: string; snap_onto_layers: string; icon: string; text: string; tags: string; newTags: UIEventSource<Tag[]>; targetLayer: string }, | ||||
|                      tagSource: UIEventSource<any>, guiState: DefaultGuiState, feature: any, onCancelClicked: () => void): BaseUIElement { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue