bounce wenn status critical oder major ist
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user