Commit 115eaba
committed
Correctly use the specified units when calculating clusters
Previously we would use a hardcoded kilometers unit against maxDistance. Instead we specify options.units and use
the default kilometers distance arg when it was not specified. This carries forward the original intent of the PR
and fixes the bug where even after the revert of the kdbush change we were not honoring the units option when
creating clusters.1 parent f1ced65 commit 115eaba
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
0 commit comments