mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	feat(geomap): note preview on tooltip
This commit is contained in:
		| @@ -178,11 +178,12 @@ export default class GeoMapTypeWidget extends TypeWidget { | |||||||
|             const [ lat, lng ] = latLng.split(",", 2).map((el) => parseFloat(el)); |             const [ lat, lng ] = latLng.split(",", 2).map((el) => parseFloat(el)); | ||||||
|             const icon = L.divIcon({ |             const icon = L.divIcon({ | ||||||
|                 html: `\ |                 html: `\ | ||||||
|                     <img class="icon" src="${asset_path}/node_modules/leaflet/dist/images/marker-icon.png" /> |                     <a data-href="#${childNote.noteId}"> | ||||||
|                     <img class="icon-shadow" src="${asset_path}/node_modules/leaflet/dist/images/marker-shadow.png" /> |                         <img class="icon" src="${asset_path}/node_modules/leaflet/dist/images/marker-icon.png" /> | ||||||
|                     <span class="bx ${childNote.getIcon()}"></span> |                         <img class="icon-shadow" src="${asset_path}/node_modules/leaflet/dist/images/marker-shadow.png" /> | ||||||
|                     <span class="title-label">${childNote.title}</span> |                         <span class="bx ${childNote.getIcon()}"></span> | ||||||
|                 `, |                         <span class="title-label">${childNote.title}</span> | ||||||
|  |                     </a>`, | ||||||
|                 iconSize: [ 25, 41 ], |                 iconSize: [ 25, 41 ], | ||||||
|                 iconAnchor: [ 12, 41 ] |                 iconAnchor: [ 12, 41 ] | ||||||
|             }) |             }) | ||||||
| @@ -194,7 +195,6 @@ export default class GeoMapTypeWidget extends TypeWidget { | |||||||
|                 autoPanSpeed: 5, |                 autoPanSpeed: 5, | ||||||
|             }) |             }) | ||||||
|                 .addTo(map) |                 .addTo(map) | ||||||
|                 .bindPopup(childNote.title) |  | ||||||
|                 .on("moveend", e => { |                 .on("moveend", e => { | ||||||
|                     this.moveMarker(childNote.noteId, (e.target as Marker).getLatLng()); |                     this.moveMarker(childNote.noteId, (e.target as Marker).getLatLng()); | ||||||
|                 }); |                 }); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user