From 8a1cc0aa6628d179ad1eed1c5fb330b9f2886e13 Mon Sep 17 00:00:00 2001 From: ISA Date: Fri, 19 Apr 2024 07:57:17 +0200 Subject: [PATCH] bounce wenn status critical oder major ist --- components/MapComponent.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/MapComponent.js b/components/MapComponent.js index f679936a9..85189457c 100644 --- a/components/MapComponent.js +++ b/components/MapComponent.js @@ -520,8 +520,8 @@ const MapComponent = ({ locations, onLocationUpdate }) => { ? `TileMap/img/icons/${status}-marker-icon-${iconNumber}.png` : `TileMap/img/icons/marker-icon-${iconNumber}.png`; - // Wenn der Pfad das Wort "critical" enthält, dann den Marker bouncing options setzen - if (path.includes("critical")) { + // Wenn der Pfad das Wort "critical" oder "major" enthält, dann den Marker bouncing options setzen + if (path.includes("critical") || path.includes("major")) { // Setze Bouncing-Optionen marker.setBouncingOptions({ bounceHeight: 15, // Höhe des Bounces @@ -616,7 +616,7 @@ const MapComponent = ({ locations, onLocationUpdate }) => { }) ); // Check if the icon path includes 'critical' and initiate bouncing - if (iconPath.includes("critical")) { + if (iconPath.includes("critical") || iconPath.includes("major")) { marker.setBouncingOptions({ bounceHeight: 15, contractHeight: 12,