mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	fix(geomap): pixel perfect marker positioning
This commit is contained in:
		
							parent
							
								
									087d4790f4
								
							
						
					
					
						commit
						016a9e4a99
					
				@ -156,15 +156,15 @@ export default class GeoMapTypeWidget extends TypeWidget {
 | 
				
			|||||||
                    <img src="${asset_path}/node_modules/leaflet/dist/images/marker-icon.png" />
 | 
					                    <img src="${asset_path}/node_modules/leaflet/dist/images/marker-icon.png" />
 | 
				
			||||||
                    <span class="bx ${childNote.getIcon()}"></span>
 | 
					                    <span class="bx ${childNote.getIcon()}"></span>
 | 
				
			||||||
                `,
 | 
					                `,
 | 
				
			||||||
                iconSize: [ 25, 42 ],
 | 
					                iconSize: [ 25, 41 ],
 | 
				
			||||||
                iconAnchor: [ 7, 42 ]
 | 
					                iconAnchor: [ 12, 41 ]
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            const marker = L.marker(L.latLng(lat, lng), {
 | 
					            const marker = L.marker(L.latLng(lat, lng), {
 | 
				
			||||||
                icon,
 | 
					                icon,
 | 
				
			||||||
                draggable: true,
 | 
					                draggable: true,
 | 
				
			||||||
                autoPan: true,
 | 
					                autoPan: true,
 | 
				
			||||||
                autoPanSpeed: 5
 | 
					                autoPanSpeed: 5,
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
                .addTo(map)
 | 
					                .addTo(map)
 | 
				
			||||||
                .bindPopup(childNote.title)
 | 
					                .bindPopup(childNote.title)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user