diff --git a/projects/common-map/src/fm-map/components/legend/histogram-details/histogram-details.component.html b/projects/common-map/src/fm-map/components/legend/histogram-details/histogram-details.component.html index e9e618c..f90fd6f 100644 --- a/projects/common-map/src/fm-map/components/legend/histogram-details/histogram-details.component.html +++ b/projects/common-map/src/fm-map/components/legend/histogram-details/histogram-details.component.html @@ -1,15 +1,15 @@
-
Average:
+
Average:
{{histogram.mean| number:'1.0-2'}}
-
Standard deviation:
+
Standard deviation:
{{histogram.stddev| number:'1.0-2'}}
-
Min:
+
Min:
{{histogram.min| number:'1.0-2'}}
-
Max:
+
Max:
{{histogram.max| number:'1.0-2'}}
-
Confidence interval:
+
Confidence interval:
{{histogram.confidence * 100| number:'1.0-0'}}%
diff --git a/projects/common-map/src/fm-map/components/legend/statistics-details/statistics-details.component.html b/projects/common-map/src/fm-map/components/legend/statistics-details/statistics-details.component.html index b9885f5..4fecbaa 100644 --- a/projects/common-map/src/fm-map/components/legend/statistics-details/statistics-details.component.html +++ b/projects/common-map/src/fm-map/components/legend/statistics-details/statistics-details.component.html @@ -1,36 +1,36 @@
-
Data points:
+
Data points:
{{statistics.populationCount}}
-
Min:
+
Min:
{{statistics.min| number:'1.0-2'}}
-
Max:
+
Max:
{{statistics.max| number:'1.0-2'}}
-
Min+1:
+
Min+1:
{{statistics.minPlus| number:'1.0-2'}}
-
Max-1:
+
Max-1:
{{statistics.maxMinus| number:'1.0-2'}}
-
Average:
+
Average:
{{statistics.mean| number:'1.0-2'}}
-
Standard deviation:
+
Standard deviation:
{{statistics.stddev| number:'1.0-2'}}
-
Mode:
+
Mode:
{{statistics.mode| number:'1.0-2'}}
-
Median:
+
Median:
{{statistics.median| number:'1.0-2'}}
-
Kurtosis:
+
Kurtosis:
{{statistics.curtosis| number:'1.0-2'}}
-
Skewness:
+
Skewness:
{{statistics.skewness| number:'1.0-2'}}
-
Variance:
+
Variance:
{{statistics.variance| number:'1.0-2'}}
-
Coefficient of variation:
+
Coefficient of variation:
{{statistics.variationCoefficient | number:'1.0-2'}}
-
90% Confidence interval:
+
90% Confidence interval:
{{statistics.confidenceIntervalLow | number:'1.0-2'}} - {{statistics.confidenceIntervalHigh | number:'1.0-2'}}
diff --git a/projects/common-map/src/fm-map/components/selected-item-temporal/selected-item-temporal.component.html b/projects/common-map/src/fm-map/components/selected-item-temporal/selected-item-temporal.component.html index 10ef92f..aa205a3 100644 --- a/projects/common-map/src/fm-map/components/selected-item-temporal/selected-item-temporal.component.html +++ b/projects/common-map/src/fm-map/components/selected-item-temporal/selected-item-temporal.component.html @@ -36,7 +36,10 @@ diff --git a/projects/common-map/src/fm-map/effects/map.effects.ts b/projects/common-map/src/fm-map/effects/map.effects.ts index 4e17cf7..d26b101 100644 --- a/projects/common-map/src/fm-map/effects/map.effects.ts +++ b/projects/common-map/src/fm-map/effects/map.effects.ts @@ -150,8 +150,10 @@ export class MapEffects { for (let f of action.features) { extend(extent, (f as Feature).getGeometry().getExtent()); } + if(action.features && action.features.length >0) { + actions.push(new mapActions.SetExtent(extent)); + } } - actions.push(new mapActions.SetExtent(extent)); } return actions; })); diff --git a/projects/common/src/fm/components/menu-background/menu-background.component.scss b/projects/common/src/fm/components/menu-background/menu-background.component.scss index 8622cf5..0ce509b 100644 --- a/projects/common/src/fm/components/menu-background/menu-background.component.scss +++ b/projects/common/src/fm/components/menu-background/menu-background.component.scss @@ -7,7 +7,7 @@ bottom:0; opacity: 0; background-color: #000000; - transition: opacity 0s ease-out 1s; + transition: opacity 0.3s ease-out; pointer-events: none; z-index:99; } diff --git a/projects/common/src/fm/services/event.service.ts b/projects/common/src/fm/services/event.service.ts index d71e489..a0eb406 100644 --- a/projects/common/src/fm/services/event.service.ts +++ b/projects/common/src/fm/services/event.service.ts @@ -42,8 +42,8 @@ export class EventService { } private Authenticate() { - var accessToken = this.oauthService.getAccessToken(); - if (accessToken) { + var accessToken = this.oauthService.getAccessToken(); + if (this.oauthService.hasValidAccessToken()) { this._connection.send('authenticate', this.oauthService.getAccessToken()); this.authenticated=true; } else {