@siemens/maps-ng 48.5.1 → 48.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { viewChild, input, signal, inject, ElementRef, Component, Directive, ViewContainerRef, TemplateRef, Injectable, model, output, contentChild, computed, NgZone, Injector, HostListener, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
|
3
|
-
import { t, SiTranslatePipe } from '@siemens/element-translate-ng/translate';
|
|
3
|
+
import { t, SiTranslatePipe, SiTranslateServiceBuilder, SiNoTranslateService } from '@siemens/element-translate-ng/translate';
|
|
4
4
|
import AnimatedCluster from 'ol-ext/layer/AnimatedCluster';
|
|
5
5
|
import Chart from 'ol-ext/style/Chart';
|
|
6
6
|
import Feature from 'ol/Feature';
|
|
@@ -10,7 +10,6 @@ import { fromLonLat } from 'ol/proj';
|
|
|
10
10
|
import Cluster from 'ol/source/Cluster';
|
|
11
11
|
import VectorSource from 'ol/source/Vector';
|
|
12
12
|
import { Text, Stroke, Fill, Style, Circle, Icon } from 'ol/style';
|
|
13
|
-
import { t as t$1, SiTranslateServiceBuilder, SiNoTranslateService } from '@siemens/element-translate-ng';
|
|
14
13
|
import { apply } from 'ol-mapbox-style';
|
|
15
14
|
import Control from 'ol/control/Control';
|
|
16
15
|
import { defaults } from 'ol/control/defaults';
|
|
@@ -4017,7 +4016,7 @@ class SiMapComponent {
|
|
|
4017
4016
|
* t(() => $localize`:@@SI_MAPS.TOOLTIP_MORE_TEXT:and {{length}} more...`)
|
|
4018
4017
|
* ```
|
|
4019
4018
|
*/
|
|
4020
|
-
moreText = input(t
|
|
4019
|
+
moreText = input(t(() => $localize `:@@SI_MAPS.TOOLTIP_MORE_TEXT:and {{length}} more...`));
|
|
4021
4020
|
/**
|
|
4022
4021
|
* Show multiple worlds, including points that cross the 180th meridian.
|
|
4023
4022
|
*
|
|
@@ -4077,10 +4076,10 @@ class SiMapComponent {
|
|
|
4077
4076
|
features = [];
|
|
4078
4077
|
selected;
|
|
4079
4078
|
targetFeature;
|
|
4080
|
-
attributionsLabel = t
|
|
4081
|
-
zoomInLabel = t
|
|
4082
|
-
zoomOutLabel = t
|
|
4083
|
-
zoomToDefaultLabel = t
|
|
4079
|
+
attributionsLabel = t(() => $localize `:@@SI_MAPS.ATTRIBUTIONS_BUTTON:Attributions`);
|
|
4080
|
+
zoomInLabel = t(() => $localize `:@@SI_MAPS.ZOOM_IN_BUTTON:Zoom in`);
|
|
4081
|
+
zoomOutLabel = t(() => $localize `:@@SI_MAPS.ZOOM_OUT_BUTTON:Zoom out`);
|
|
4082
|
+
zoomToDefaultLabel = t(() => $localize `:@@SI_MAPS.ZOOM_TO_DEFAULT_BUTTON:Zoom to default view`);
|
|
4084
4083
|
clusterInteraction;
|
|
4085
4084
|
selectedCluster;
|
|
4086
4085
|
darkTheme = undefined;
|
|
@@ -4743,7 +4742,7 @@ class SiMapComponent {
|
|
|
4743
4742
|
mapPoints: feature.getProperties()
|
|
4744
4743
|
});
|
|
4745
4744
|
if (extraProperties) {
|
|
4746
|
-
feature.getProperties().click(extraProperties);
|
|
4745
|
+
feature.getProperties().click?.(extraProperties);
|
|
4747
4746
|
}
|
|
4748
4747
|
}
|
|
4749
4748
|
else if (this.geoJson()) {
|