forked from MapComplete/MapComplete
		
	Add some tweaks to hide the add-poi-marker when a layer is enabled
This commit is contained in:
		
							parent
							
								
									77e065d6e7
								
							
						
					
					
						commit
						15f816e172
					
				
					 5 changed files with 30 additions and 8 deletions
				
			
		|  | @ -27,6 +27,7 @@ export class SimpleAddUI extends UIElement { | |||
|     }> | ||||
|         = new UIEventSource(undefined); | ||||
|     private confirmButton: UIElement = undefined; | ||||
|     private openLayerControl: UIElement; | ||||
|     private cancelButton: UIElement; | ||||
|     private goToInboxButton: UIElement = new SubtleButton("./assets/envelope.svg",  | ||||
|         Translations.t.general.goToInbox, {url:"https://www.openstreetmap.org/messages/inbox", newTab: false}); | ||||
|  | @ -100,19 +101,24 @@ export class SimpleAddUI extends UIElement { | |||
|                         } | ||||
|                     ) | ||||
| 
 | ||||
|                  | ||||
| 
 | ||||
| 
 | ||||
|                 this._addButtons.push(button); | ||||
|             } | ||||
|         } | ||||
|          | ||||
| 
 | ||||
|         this.cancelButton = new SubtleButton( | ||||
|             "./assets/close.svg", | ||||
|             Translations.t.general.cancel | ||||
|         ).onClick(() => { | ||||
|             self._confirmPreset.setData(undefined); | ||||
|         }) | ||||
| 
 | ||||
|         this.openLayerControl = new SubtleButton( | ||||
|             "./assets/layers.svg", | ||||
|             Translations.t.general.add.openLayerControl | ||||
|         ).onClick(() => { | ||||
|             State.state.layerControlIsOpened.setData(true); | ||||
|         }) | ||||
|     } | ||||
| 
 | ||||
|     private CreatePoint(tags: Tag[], layerToAddTo: FilteredLayer) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue