From f34836763c1df0da4174dbbc5fb9ce6bd1e1691f Mon Sep 17 00:00:00 2001 From: ajvpot <553597+ajvpot@users.noreply.github.com> Date: Thu, 18 Sep 2025 01:58:48 +0200 Subject: [PATCH] min packet thresh --- src/components/MapLayerSettings.tsx | 31 +++++++++++++++++++++++++++++ src/components/MapView.tsx | 11 ++++++++-- src/hooks/useMapLayerSettings.ts | 2 ++ 3 files changed, 42 insertions(+), 2 deletions(-) diff --git a/src/components/MapLayerSettings.tsx b/src/components/MapLayerSettings.tsx index fb43cb1..c3dd0f7 100644 --- a/src/components/MapLayerSettings.tsx +++ b/src/components/MapLayerSettings.tsx @@ -165,6 +165,37 @@ export default function MapLayerSettingsComponent({ onSettingsChange }: MapLayer + {/* Minimum packet count - indented sub-option */} +
+ + updateSetting('minPacketCount', Math.max(1, parseInt(e.target.value) || 1))} + disabled={!settings.showAllNeighbors} + className={`w-full p-2 border border-gray-300 dark:border-neutral-600 rounded text-sm ${ + settings.showAllNeighbors + ? 'bg-white dark:bg-neutral-800 text-gray-700 dark:text-gray-300' + : 'bg-gray-100 dark:bg-neutral-700 text-gray-400 dark:text-gray-500 cursor-not-allowed' + }`} + /> +

+ Only show path neighbors with at least this many packets +

+
+ {/* Tile layer */}