fix: Reduce spidering nearbyDistance to prevent grouping distant markers

- 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 <noreply@anthropic.com>
This commit is contained in:
Graham McIntire 2025-07-31 09:06:49 -05:00
parent 6bd183dd6f
commit b718d6bb3d
No known key found for this signature in database

View file

@ -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