mirror of
https://github.com/smittix/intercept.git
synced 2026-04-29 17:19:59 -07:00
feat: Add pulsating ring effect for tracked aircraft/vessels
Makes it much clearer which vehicle is being tracked on the map by adding two animated concentric rings that pulse outward from the selected marker. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2970,9 +2970,11 @@ sudo make install</code>
|
||||
const size = iconType === 'helicopter' ? 22 : 24;
|
||||
const glowColor = isSelected ? 'rgba(255,255,255,0.9)' : color;
|
||||
const glowSize = isSelected ? '10px' : '5px';
|
||||
const trackingRing = isSelected ?
|
||||
'<div class="tracking-ring"></div><div class="tracking-ring-inner"></div>' : '';
|
||||
return L.divIcon({
|
||||
className: `aircraft-marker aircraft-${iconType}${isSelected ? ' selected' : ''}`,
|
||||
html: `<svg width="${size}" height="${size}" viewBox="0 0 24 24" style="transform: rotate(${rotation}deg); color: ${color}; filter: drop-shadow(0 0 ${glowSize} ${glowColor});">
|
||||
html: `${trackingRing}<svg width="${size}" height="${size}" viewBox="0 0 24 24" style="transform: rotate(${rotation}deg); color: ${color}; filter: drop-shadow(0 0 ${glowSize} ${glowColor});">
|
||||
<path fill="currentColor" d="${path}"/>
|
||||
</svg>`,
|
||||
iconSize: [size, size],
|
||||
|
||||
Reference in New Issue
Block a user