Skip to content

Commit c30973c

Browse files
Robin BuschmannRobin Buschmann
authored andcommitted
charging location limit for clustering changed; cluster epsilon further adjustment
1 parent 3b5021c commit c30973c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

services/ChargingLocationService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export class ChargingLocationService {
145145
})
146146
.then(chargingLocations => {
147147

148-
if(chargingLocations.length > 320) {
148+
if(chargingLocations.length > 300) {
149149

150150
return <any>this.geoService.getLocationClusters(chargingLocations, epsilon, null, true);
151151
}

services/GeoService.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ export class GeoService {
3434
getEpsilonByZoom(zoom: number) {
3535

3636
if(zoom > 16){
37-
return 0.0008;
37+
return 0.00095;
3838
}
3939

4040
switch (zoom) {
4141
case 16:
42-
return 0.0001;
42+
return 0.001;
4343
case 15:
44-
return 0.0015;
44+
return 0.002;
4545
case 14:
46-
return 0.0025;
46+
return 0.00275;
4747
case 13:
48-
return 0.003;
48+
return 0.0035;
4949
case 12:
5050
return 0.008;
5151
case 11:

0 commit comments

Comments
 (0)