Home Projects Portfolio Dashboard Export PDF Log in
TypeScript

Enhancing Visual Feedback in WorldMonitor: Moving from Static Badges to Dynamic Pulsing

Rethinking Map UI Clarity

In data-heavy dashboards, clutter is the enemy of insight. The worldmonitor project recently underwent a refinement process to improve how users interact with live news data on our maps. We noticed that static iconography was creating visual noise, making it difficult for users to distinguish between significant news clusters and active, real-time events.

The Problem with Static Indicators

Previously, we used high-contrast "BREAKING" badges to highlight urgent news. While functional, these elements frequently overlapped with location markers, creating a cluttered map interface. Users reported that the static nature of the badges made the map feel stale, failing to capture the urgency of incoming data feeds.

Transitioning to Pulsing Animations

To address this, we removed the static "BREAKING" badges entirely. In their place, we implemented a pulsing animation effect around location markers. This shift provides a non-intrusive way to signify activity without overwhelming the map view with text overlays.

Technically, this involved updating our map component styles to include a high-frequency animation loop. Using TypeScript for the animation logic allowed us to ensure type safety while manipulating the DOM nodes representing our news markers.

Implementation Strategy

Instead of rendering complex DOM elements for a badge, we now append a CSS-animated pulse effect to the marker container. This reduces the number of elements in the DOM and keeps our rendering pipeline lean.

// Example: Adding a pulse class to active news markers
const applyPulseEffect = (markerElement: HTMLElement): void => {
  markerElement.classList.add('pulse-ring');
  
  // Set the animation duration to 30s as per design requirements
  markerElement.style.setProperty('--pulse-duration', '30s');
};

// Applying the effect during the marker render cycle
newsItems.forEach(item => {
  if (item.isLive) {
    const element = document.getElementById(`marker-${item.id}`);
    if (element) applyPulseEffect(element);
  }
});

Key Takeaways

  • Reduce Visual Noise: Removing unnecessary labels (like static badges) can drastically clean up user interfaces.
  • Use Motion for Priority: Subtle animations, such as a 30-second pulse, naturally draw the eye toward active items without obscuring underlying map data.
  • Lean DOM Management: Swapping text overlays for CSS-based animations improves rendering performance and simplifies component maintenance.

Generated with Gitvlg.com

Enhancing Visual Feedback in WorldMonitor: Moving from Static Badges to Dynamic Pulsing
Keber Flores

Keber Flores

Author

Share: