SMS-Funkmodem in mapLayerState.js in SMSFunkmodem wegen Bindestrich, ansonsten default ist aus
This commit is contained in:
@@ -63,13 +63,16 @@ function DataSheet() {
|
||||
const filteredSystems = GisSystemStatic.filter((item) => {
|
||||
// Entferne alle Leerzeichen und Bindestriche aus dem Namen
|
||||
const formattedName = item.Name.replace(/[\s\-]+/g, "");
|
||||
// Entferne alle Leerzeichen aus dem Namen, behalte Bindestriche
|
||||
//const formattedName = item.Name.replace(/\s+/g, "");
|
||||
const isUnique = !seenSystemNames.has(formattedName) && item.Allow === 1;
|
||||
if (isUnique) {
|
||||
seenSystemNames.add(formattedName); // Füge den formatierten Namen hinzu
|
||||
//console.log("Unique system in DataSheet:", formattedName); // Zeige den formatierten Namen in der Konsole
|
||||
console.log("Unique system in DataSheet:", formattedName); // Zeige den formatierten Namen in der Konsole
|
||||
}
|
||||
return isUnique;
|
||||
});
|
||||
console.log("filteredSystems:", filteredSystems); // Logge die gefilterten Systeme
|
||||
|
||||
setSystemListing(
|
||||
filteredSystems.map((system, index) => ({
|
||||
|
||||
@@ -329,8 +329,8 @@ const MapComponent = ({ locations, onLocationUpdate }) => {
|
||||
|
||||
function getIconPath(status, iconNumber, marker) {
|
||||
let path = status
|
||||
? `TileMap/img/icons/${status}-marker-icon-${iconNumber}.png`
|
||||
: `TileMap/img/icons/marker-icon-${iconNumber}.png`;
|
||||
? `img/icons/${status}-marker-icon-${iconNumber}.png`
|
||||
: `img/icons/marker-icon-${iconNumber}.png`;
|
||||
|
||||
// Wenn der Pfad das Wort "critical" oder "major" enthält, dann den Marker bouncing options setzen
|
||||
if (
|
||||
@@ -601,7 +601,7 @@ const MapComponent = ({ locations, onLocationUpdate }) => {
|
||||
// In der Marker-Erstellungsfunktion
|
||||
//---------------------------------------------------------
|
||||
useEffect(() => {
|
||||
console.log("useEffect current Data:", currentPoiData);
|
||||
//console.log("useEffect current Data:", currentPoiData);
|
||||
}, [currentPoiData]);
|
||||
//---------------------------------------------------------
|
||||
//------------------------------------------
|
||||
@@ -930,10 +930,10 @@ const MapComponent = ({ locations, onLocationUpdate }) => {
|
||||
locations.forEach(async (location) => {
|
||||
const { latitude, longitude } = parsePoint(location.position);
|
||||
const poiTypName = poiTypMap.get(location.idPoiTyp) || "Unbekannt ";
|
||||
console.log("poiTypName in poiLayer:", poiTypName);
|
||||
//console.log("poiTypName in poiLayer:", poiTypName);
|
||||
//console.log("location.idPoiTyp poiLayer:", location.idPoiTyp);
|
||||
console.log("location.idPoiTyp poiLayer:", location);
|
||||
console.log("location.idPoiTyp:", location.idPoiTyp);
|
||||
//console.log("location.idPoiTyp poiLayer:", location);
|
||||
//console.log("location.idPoiTyp:", location.idPoiTyp);
|
||||
|
||||
const deviceName = await fetchDeviceNameById(location.idLD);
|
||||
const marker = L.marker([latitude, longitude], {
|
||||
@@ -957,7 +957,7 @@ const MapComponent = ({ locations, onLocationUpdate }) => {
|
||||
},
|
||||
],
|
||||
});
|
||||
console.log("location.idPoi:", location);
|
||||
//console.log("location.idPoi:", location);
|
||||
|
||||
// Popup konfigurieren
|
||||
marker.bindPopup(`
|
||||
@@ -987,10 +987,10 @@ const MapComponent = ({ locations, onLocationUpdate }) => {
|
||||
//Informationen an handlePoiSelect übergeben
|
||||
handlePoiSelect(poiData);
|
||||
|
||||
console.log("poiData in MapComponent.js:", poiData);
|
||||
//console.log("poiData in MapComponent.js:", poiData);
|
||||
|
||||
setCurrentPoi(location);
|
||||
console.log("POI-Daten currentPoi:", currentPoi);
|
||||
|
||||
//console.log("poiData in MapComponent.js:", poiData);
|
||||
});
|
||||
marker.on("mouseout", function () {
|
||||
|
||||
Reference in New Issue
Block a user