mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 19:49:01 +01:00 
			
		
		
		
	feat(popup_editor): integrate with geomap
This commit is contained in:
		
							parent
							
								
									7d9196d5e1
								
							
						
					
					
						commit
						892ab02f06
					
				| @ -29,6 +29,11 @@ const TPL = /*html*/` | |||||||
|             z-index: 1; |             z-index: 1; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  |         .leaflet-top, | ||||||
|  |         .leaflet-bottom { | ||||||
|  |             z-index: 997; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|         .geo-map-container.placing-note { |         .geo-map-container.placing-note { | ||||||
|             cursor: crosshair; |             cursor: crosshair; | ||||||
|         } |         } | ||||||
|  | |||||||
| @ -36,10 +36,17 @@ export default function processNoteWithMarker(map: Map, note: FNote, location: s | |||||||
|             return true; |             return true; | ||||||
|         } |         } | ||||||
|     }); |     }); | ||||||
|  | 
 | ||||||
|     newMarker.on("contextmenu", (e) => { |     newMarker.on("contextmenu", (e) => { | ||||||
|         openContextMenu(note.noteId, e, isEditable); |         openContextMenu(note.noteId, e, isEditable); | ||||||
|     }); |     }); | ||||||
| 
 | 
 | ||||||
|  |     if (!isEditable) { | ||||||
|  |         newMarker.on("click", (e) => { | ||||||
|  |             appContext.triggerCommand("openInPopup", { noteIdOrPath: note.noteId }); | ||||||
|  |         }); | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|     return newMarker; |     return newMarker; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran