Plus icon anchor verringern

This commit is contained in:
ISA
2024-05-15 10:53:47 +02:00
parent 5fb6a841cb
commit 15721e0406
2 changed files with 4 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ const plusRoundIcon = L.icon({
//iconUrl: "/img/plus_round.png", // Update with your actual path
iconUrl: "/img/plus_round.png", // Update with your actual path
iconSize: [22, 22],
iconAnchor: [28, 55],
iconAnchor: [25, 55],
className: "absolute top-0 left-0 z-10", // Adjust with Tailwind CSS classes
});
@@ -138,7 +138,7 @@ const MapComponent = ({ locations, onLocationUpdate }) => {
contextmenu: true,
contextmenuWidth: 140,
contextmenuItems: [
{
/* {
text: "Station öffnen (Tab)",
icon: "/img/screen_new.png",
callback: (e) => openInNewTab(e, marker),
@@ -147,7 +147,7 @@ const MapComponent = ({ locations, onLocationUpdate }) => {
text: "Station öffnen",
icon: "/img/screen_same.png",
callback: (e) => openInSameWindow(e, marker),
},
}, */
],
});
}