SMS-Funkmodem in mapLayerState.js in SMSFunkmodem wegen Bindestrich, ansonsten default ist aus
@@ -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 () {
|
||||
|
||||
BIN
node-v20.12.1-x64.msi
Normal file
@@ -24,7 +24,7 @@ export default function Home() {
|
||||
}
|
||||
const data = await response.json();
|
||||
setLocations(data);
|
||||
console.log("Geladene Daten in Home.js:", data);
|
||||
//console.log("Geladene Daten in Home.js:", data);
|
||||
} catch (error) {
|
||||
console.error(error.message);
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 589 B |
|
Before Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 842 B |
|
Before Width: | Height: | Size: 762 B |
|
Before Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |