mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-20 18:22:25 +00:00
fix(cctv): count a lone camera in the marker it sits against
A ground cell with one camera always drew its icon, so at some zooms a camera poked out from under a count marker with its own callout. An icon closer than the merge gap to a count marker now joins that marker: the count grows by one and the icon, its callout and its card are not drawn. Two lone cameras with no count beside them stay two icons, and the active camera always keeps its own icon.
This commit is contained in:
1 parent
c536d22ff0
commit
65942008bf
8 files changed
+125
-24
No files matched your search
@@ -104,6 +104,10 @@ export const COUNT_LABEL_DROP = 0.2;
|
||||
// Minimum gap between the outer rims of two separate markers.
|
||||
export const COUNT_MERGE_GAP_PX = 4;
|
||||
|
||||
// On-screen size of a lone camera's icon when testing it against a count
|
||||
// marker: an icon closer than the merge gap joins that count.
|
||||
export const COUNT_SINGLE_ICON_PX = 24;
|
||||
|
||||
// Recheck moved centres and wider labels while bounding work on motion ticks.
|
||||
export const COUNT_MERGE_PASSES = 3;
|
||||
|
||||
|
||||
Reference in new issue
Block a user