Jetzt muss noch Links für polylines mit localStorage oder Recoil gelöst werden, alle Links für alle Geräte funktionieren gut
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// /utils/openInNewTab.js
|
||||
// utils/openInNewTab.js
|
||||
|
||||
export function openInNewTab(e, target) {
|
||||
const BASE_URL = process.env.NEXT_PUBLIC_BASE_URL;
|
||||
@@ -8,9 +8,8 @@ export function openInNewTab(e, target) {
|
||||
if (target instanceof L.Marker && target.options.link) {
|
||||
// Verwende den Link, der im Marker gespeichert ist
|
||||
link = `${BASE_URL}${target.options.link}`;
|
||||
//link = target.options.link;
|
||||
} else if (target instanceof L.Polyline) {
|
||||
// Polyline-Logik bleibt unverändert
|
||||
// Polyline-Logik
|
||||
const idLD = target.options.idLD;
|
||||
if (idLD) {
|
||||
link = `${BASE_URL}cpl.aspx?id=${idLD}`;
|
||||
|
||||
Reference in New Issue
Block a user