1. Filterung eindeutiger Bereiche und Systeme: Systeme werden nur berücksichtigt, wenn Allow === 1. Das sorgt dafür, dass keine Systeme angezeigt werden, die nicht erlaubt sind.
2. Dynamisches Checkbox-Handling: Die Checkboxen werden dynamisch anhand der gefilterten Systeme erstellt. Ihre Sichtbarkeitsänderungen werden zentral gehandhabt. 3. Verwaltung der Sichtbarkeit: Die Sichtbarkeit jedes Systems wird in mapLayersVisibility basierend auf Benutzerinteraktionen gesteuert.
This commit is contained in:
@@ -728,9 +728,9 @@ const MapComponent = ({ locations, onLocationUpdate }) => {
|
||||
const priority = determinePriority(iconPath);
|
||||
const zIndexOffset = 100 * (5 - priority); // Adjusted for simplicity and positive values
|
||||
|
||||
console.log(
|
||||
/* console.log(
|
||||
`Icon Path: ${iconPath}, Priority: ${priority}, zIndexOffset: ${zIndexOffset}`
|
||||
);
|
||||
); */
|
||||
|
||||
const marker = L.marker([station.X, station.Y], {
|
||||
icon: L.icon({
|
||||
@@ -978,7 +978,7 @@ const MapComponent = ({ locations, onLocationUpdate }) => {
|
||||
let measurements = {};
|
||||
|
||||
gmaMeasurements.forEach((m) => {
|
||||
console.log(`Messung: ${m.Area_Name}, Na: ${m.Na}, Wert: ${m.Val}`);
|
||||
//console.log(`Messung: ${m.Area_Name}, Na: ${m.Na}, Wert: ${m.Val}`);
|
||||
area_name = m.Area_Name; // Dies überschreibt area_name mit dem letzten Area_Name im Array
|
||||
measurements[m.Na] = m.Val; // Speichert den Wert von Val unter dem Code Na in einem Objekt
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user