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,