From b718d6bb3d9483c03bd5db8fe3777b0e9891cf15 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Thu, 31 Jul 2025 09:06:49 -0500 Subject: [PATCH] fix: Reduce spidering nearbyDistance to prevent grouping distant markers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Reduced nearbyDistance from 100 to 20 pixels to only spider truly overlapping markers - Added spiderfyDistanceMultiplier: 2 to increase separation when markers do spider - Added leg color configuration for better visibility - Fixes issue where distant markers like K5FDT-R were incorrectly grouped with AE5PL stations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- assets/js/map.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/js/map.ts b/assets/js/map.ts index ca7e08b..bb686b8 100644 --- a/assets/js/map.ts +++ b/assets/js/map.ts @@ -571,9 +571,14 @@ let MapAPRSMap = { if (typeof window.OverlappingMarkerSpiderfier !== "undefined") { self.oms = new window.OverlappingMarkerSpiderfier(self.map, { keepSpiderfied: true, - nearbyDistance: 100, + nearbyDistance: 20, circleSpiralSwitchover: 15, legWeight: 2, + legColors: { + usual: '#222', + highlighted: '#f00' + }, + spiderfyDistanceMultiplier: 2 }); // Add click handler for spiderfied markers