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:
parent
6bd183dd6f
commit
b718d6bb3d
1 changed files with 6 additions and 1 deletions
|
|
@ -571,9 +571,14 @@ let MapAPRSMap = {
|
||||||
if (typeof window.OverlappingMarkerSpiderfier !== "undefined") {
|
if (typeof window.OverlappingMarkerSpiderfier !== "undefined") {
|
||||||
self.oms = new window.OverlappingMarkerSpiderfier(self.map, {
|
self.oms = new window.OverlappingMarkerSpiderfier(self.map, {
|
||||||
keepSpiderfied: true,
|
keepSpiderfied: true,
|
||||||
nearbyDistance: 100,
|
nearbyDistance: 20,
|
||||||
circleSpiralSwitchover: 15,
|
circleSpiralSwitchover: 15,
|
||||||
legWeight: 2,
|
legWeight: 2,
|
||||||
|
legColors: {
|
||||||
|
usual: '#222',
|
||||||
|
highlighted: '#f00'
|
||||||
|
},
|
||||||
|
spiderfyDistanceMultiplier: 2
|
||||||
});
|
});
|
||||||
|
|
||||||
// Add click handler for spiderfied markers
|
// Add click handler for spiderfied markers
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue