fix: GMA Tooltip Kontextmenü schließen wenn versucht neu aufzurufen
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
// utils/initializeMap.js
|
||||
// TODO: Add a comment
|
||||
//FIXME: Add a comment
|
||||
//BUG: Add a comment
|
||||
import L from "leaflet";
|
||||
import "leaflet-contextmenu";
|
||||
import "leaflet/dist/leaflet.css";
|
||||
@@ -44,7 +47,7 @@ export const initializeMap = (mapRef, setMap, setOms, setMenuItemAdded, addItems
|
||||
|
||||
try {
|
||||
if (clickedElement instanceof L.Marker || clickedElement?.options?.link) {
|
||||
const link = clickedElement.options.link;
|
||||
const link = "/talas5/devices/" + clickedElement.options.link;
|
||||
if (link) {
|
||||
console.log("Opening link in a new tab:", link);
|
||||
window.open(link, "_blank");
|
||||
|
||||
Reference in New Issue
Block a user