Skip to content

Commit 7554db7

Browse files
Robin BuschmannRobin Buschmann
authored andcommitted
zoom epsilon calc adjusted
1 parent 732d099 commit 7554db7

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

services/GeoService.ts

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,21 @@ export class GeoService {
3333
*/
3434
getEpsilonByZoom(zoom: number) {
3535

36+
if(zoom > 16){
37+
return 0.0007;
38+
}
39+
3640
switch (zoom) {
41+
case 16:
42+
return 0.0008;
3743
case 15:
38-
return 0.002;
44+
return 0.001;
3945
case 14:
40-
return 0.003;
46+
return 0.0025;
4147
case 13:
42-
return 0.006;
48+
return 0.005;
4349
case 12:
44-
return 0.0089;
50+
return 0.008;
4551
case 11:
4652
return 0.01;
4753
case 10:
@@ -145,12 +151,12 @@ export class GeoService {
145151
epsilon,
146152
chargingLocations
147153
};
148-
154+
149155
if(addGroupCount) {
150-
156+
151157
locationCluster.groupCount = total;
152158
}
153-
159+
154160
return locationCluster;
155161
}
156162
}

0 commit comments

Comments
 (0)