@siemens/maps-ng 47.11.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.
- package/LICENSE.md +20 -0
- package/README.md +119 -0
- package/assets/default-marker-icon.svg +9 -0
- package/assets/marker-default.svg +7 -0
- package/components/si-map/components/index.d.ts +6 -0
- package/components/si-map/components/si-map-popover/si-map-popover-cluster-template.directive.d.ts +9 -0
- package/components/si-map/components/si-map-popover/si-map-popover-template.directive.d.ts +9 -0
- package/components/si-map/components/si-map-popover/si-map-popover.component.d.ts +25 -0
- package/components/si-map/components/si-map-tooltip/si-map-tooltip.component.d.ts +39 -0
- package/components/si-map/index.d.ts +9 -0
- package/components/si-map/models/color-palette.type.d.ts +9 -0
- package/components/si-map/models/constants.d.ts +32 -0
- package/components/si-map/models/grouping.model.d.ts +13 -0
- package/components/si-map/models/index.d.ts +9 -0
- package/components/si-map/models/map-point.interface.d.ts +78 -0
- package/components/si-map/models/overlay-native-properties.interface.d.ts +17 -0
- package/components/si-map/services/SelectCluster.d.ts +16 -0
- package/components/si-map/services/map.service.d.ts +85 -0
- package/components/si-map/shared/themes/element.d.ts +17 -0
- package/components/si-map/shared/themes/marker.d.ts +7 -0
- package/components/si-map/shared/themes/style.d.ts +5 -0
- package/components/si-map/si-map.component.d.ts +406 -0
- package/components/si-map/si-map.module.d.ts +9 -0
- package/fesm2022/siemens-maps-ng-translate.mjs +21 -0
- package/fesm2022/siemens-maps-ng-translate.mjs.map +1 -0
- package/fesm2022/siemens-maps-ng.mjs +4895 -0
- package/fesm2022/siemens-maps-ng.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/package.json +50 -0
- package/projects/maps-ng/README.md +119 -0
- package/public-api.d.ts +7 -0
- package/public-api.module.d.ts +8 -0
- package/translate/index.d.ts +6 -0
- package/translate/package.json +3 -0
- package/translate/si-translatable-keys.interface.d.ts +7 -0
- package/translate/si-translatable-overrides.provider.d.ts +7 -0
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Siemens 2016 - 2025
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { AfterViewChecked, AfterViewInit, ElementRef, OnChanges, OnDestroy, SimpleChanges, Type } from '@angular/core';
|
|
6
|
+
import { Coordinate } from 'ol/coordinate';
|
|
7
|
+
import Feature, { FeatureLike } from 'ol/Feature';
|
|
8
|
+
import Map from 'ol/Map';
|
|
9
|
+
import MapBrowserEvent from 'ol/MapBrowserEvent';
|
|
10
|
+
import Overlay, { Positioning } from 'ol/Overlay';
|
|
11
|
+
import { StyleLike } from 'ol/style/Style';
|
|
12
|
+
import { SiMapPopoverComponent } from './components/si-map-popover/si-map-popover.component';
|
|
13
|
+
import { SiMapTooltipComponent } from './components/si-map-tooltip/si-map-tooltip.component';
|
|
14
|
+
import { ColorPalette } from './models/color-palette.type';
|
|
15
|
+
import { MapPoint } from './models/map-point.interface';
|
|
16
|
+
import { OverlayNativeProperties } from './models/overlay-native-properties.interface';
|
|
17
|
+
import { SelectCluster } from './services/SelectCluster';
|
|
18
|
+
import * as i0 from "@angular/core";
|
|
19
|
+
interface ClusterHolder {
|
|
20
|
+
feature?: Feature;
|
|
21
|
+
}
|
|
22
|
+
export declare class SiMapComponent implements AfterViewInit, OnChanges, OnDestroy, AfterViewChecked {
|
|
23
|
+
/**
|
|
24
|
+
* Points to be rendered on the map as features.
|
|
25
|
+
*/
|
|
26
|
+
readonly points: import("@angular/core").ModelSignal<MapPoint[] | undefined>;
|
|
27
|
+
/**
|
|
28
|
+
* Payload of a geo-JSON object.
|
|
29
|
+
*/
|
|
30
|
+
readonly geoJson: import("@angular/core").InputSignal<any>;
|
|
31
|
+
/**
|
|
32
|
+
* Callback function to add custom styling to the drawn geo-JSON features.
|
|
33
|
+
*/
|
|
34
|
+
readonly styleFunction: import("@angular/core").InputSignal<StyleLike | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* Projection format used to render the geo-JSON payload.
|
|
37
|
+
*
|
|
38
|
+
* @defaultValue 'EPSG:3857'
|
|
39
|
+
*/
|
|
40
|
+
readonly geoJsonProjection: import("@angular/core").InputSignal<string>;
|
|
41
|
+
/**
|
|
42
|
+
* Enable or disable animation of markers.
|
|
43
|
+
*
|
|
44
|
+
* @defaultValue false
|
|
45
|
+
*/
|
|
46
|
+
readonly markerAnimation: import("@angular/core").InputSignal<boolean>;
|
|
47
|
+
/**
|
|
48
|
+
* Enable or disable clustering of points on the map.
|
|
49
|
+
*
|
|
50
|
+
* @defaultValue false
|
|
51
|
+
*/
|
|
52
|
+
readonly cluster: import("@angular/core").InputSignal<boolean>;
|
|
53
|
+
/**
|
|
54
|
+
* Defines which colors should be used when points are grouped. Grouping means
|
|
55
|
+
* that points are painted with their group color and they are displayed as
|
|
56
|
+
* series in donut chart inside cluster.
|
|
57
|
+
*
|
|
58
|
+
* @defaultValue 'status'
|
|
59
|
+
*/
|
|
60
|
+
readonly groupColors: import("@angular/core").InputSignal<Record<number, string> | ColorPalette>;
|
|
61
|
+
/**
|
|
62
|
+
* - **overlay**: Layer for popup element, an element to be displayed over the
|
|
63
|
+
* map and attached to a single map location.
|
|
64
|
+
* - **controls**: List of controls to activate for map, additional controls
|
|
65
|
+
* like full screen, etc. can be added here.
|
|
66
|
+
*/
|
|
67
|
+
readonly nativeProperties: import("@angular/core").InputSignal<OverlayNativeProperties | undefined>;
|
|
68
|
+
/**
|
|
69
|
+
* Type of background map, for example `'https://api.maptiler.com/maps/voyager/style.json?key=xxx'`
|
|
70
|
+
* (Token key is required). The styleJson defines the tiler source and the
|
|
71
|
+
* used styles for different layers, should only be used if the siemens
|
|
72
|
+
* default styles by using `maptilerKey` isn't good enough.
|
|
73
|
+
*/
|
|
74
|
+
readonly styleJson: import("@angular/core").InputSignal<any>;
|
|
75
|
+
/**
|
|
76
|
+
* Option to switch on/off the display of tooltip while hovering over single
|
|
77
|
+
* point.
|
|
78
|
+
*
|
|
79
|
+
* @defaultValue false
|
|
80
|
+
*/
|
|
81
|
+
readonly displayTooltipOnHover: import("@angular/core").InputSignal<boolean>;
|
|
82
|
+
/**
|
|
83
|
+
* Option to switch on/off the display of popover when clicked.
|
|
84
|
+
* Default set to true (on).
|
|
85
|
+
*
|
|
86
|
+
* @defaultValue true
|
|
87
|
+
*/
|
|
88
|
+
readonly displayPopoverOnClick: import("@angular/core").InputSignal<boolean>;
|
|
89
|
+
/**
|
|
90
|
+
* Option to switch on/off popover when hovered.
|
|
91
|
+
* Default is set to false (off)
|
|
92
|
+
*
|
|
93
|
+
* @defaultValue false
|
|
94
|
+
*/
|
|
95
|
+
readonly displayPopoverOnHover: import("@angular/core").InputSignal<boolean>;
|
|
96
|
+
/**
|
|
97
|
+
* Provide your key for MapTiler, this will use the default siemens element
|
|
98
|
+
* styles which can be used in both light and dark mode. Shouldn't be used
|
|
99
|
+
* together with styleJson.
|
|
100
|
+
*/
|
|
101
|
+
readonly maptilerKey: import("@angular/core").InputSignal<string | undefined>;
|
|
102
|
+
/**
|
|
103
|
+
* Option to switch on/off the display of tooltip while hovering over cluster.
|
|
104
|
+
*
|
|
105
|
+
* @defaultValue false
|
|
106
|
+
*/
|
|
107
|
+
readonly displayTooltipOnClusterHover: import("@angular/core").InputSignal<boolean>;
|
|
108
|
+
/**
|
|
109
|
+
* Defines range in which points are clustered. In pixels.
|
|
110
|
+
*
|
|
111
|
+
* @defaultValue DEFAULT_CLUSTER_DISTANCE
|
|
112
|
+
*/
|
|
113
|
+
readonly clusterDistance: import("@angular/core").InputSignal<number>;
|
|
114
|
+
/**
|
|
115
|
+
* Zoom level when calling the `select()` method on the component.
|
|
116
|
+
* Defaults to 10.
|
|
117
|
+
*
|
|
118
|
+
* @defaultValue DEFAULT_FEATURE_SELECT_ZOOM
|
|
119
|
+
*/
|
|
120
|
+
readonly featureSelectZoom: import("@angular/core").InputSignal<number>;
|
|
121
|
+
/**
|
|
122
|
+
* Max zoom level which is used when clicking on feature on the map.
|
|
123
|
+
* Defaults to 15.
|
|
124
|
+
*
|
|
125
|
+
* @defaultValue DEFAULT_FEATURE_CLICK_ZOOM
|
|
126
|
+
*/
|
|
127
|
+
readonly featureClickZoom: import("@angular/core").InputSignal<number>;
|
|
128
|
+
/**
|
|
129
|
+
* Max zoom level for clicking on a cluster on the map. Defaults to 15.
|
|
130
|
+
*
|
|
131
|
+
* @defaultValue DEFAULT_CLUSTER_CLICK_ZOOM
|
|
132
|
+
*/
|
|
133
|
+
readonly clusterClickZoom: import("@angular/core").InputSignal<number>;
|
|
134
|
+
/**
|
|
135
|
+
* Max zoom level on load or when clicking the reset button. Defaults to 5.
|
|
136
|
+
*
|
|
137
|
+
* @defaultValue DEFAULT_GLOBAL_ZOOM
|
|
138
|
+
*/
|
|
139
|
+
readonly globalZoom: import("@angular/core").InputSignal<number>;
|
|
140
|
+
/**
|
|
141
|
+
* When enabled, features will be automatically zoom to on click.
|
|
142
|
+
*
|
|
143
|
+
* @defaultValue false
|
|
144
|
+
*/
|
|
145
|
+
readonly autoZoomFeatureClick: import("@angular/core").InputSignal<boolean>;
|
|
146
|
+
/**
|
|
147
|
+
* When disabled, clusters will no longer automatically be zoomed to on click.
|
|
148
|
+
*
|
|
149
|
+
* @defaultValue true
|
|
150
|
+
*/
|
|
151
|
+
readonly autoZoomClusterClick: import("@angular/core").InputSignal<boolean>;
|
|
152
|
+
/**
|
|
153
|
+
* Custom popover component
|
|
154
|
+
*/
|
|
155
|
+
readonly popoverComponent: import("@angular/core").InputSignal<Type<any> | undefined>;
|
|
156
|
+
/**
|
|
157
|
+
* Custom popover component for clustering
|
|
158
|
+
*/
|
|
159
|
+
readonly clusterPopoverComponent: import("@angular/core").InputSignal<Type<any> | undefined>;
|
|
160
|
+
/**
|
|
161
|
+
* Custom popover component
|
|
162
|
+
*/
|
|
163
|
+
readonly popoverComponentProps: import("@angular/core").InputSignal<any>;
|
|
164
|
+
/**
|
|
165
|
+
* Close the popover on click
|
|
166
|
+
*
|
|
167
|
+
* @defaultValue true
|
|
168
|
+
*/
|
|
169
|
+
readonly popoverCloseOnClick: import("@angular/core").InputSignal<boolean>;
|
|
170
|
+
/**
|
|
171
|
+
* Padding (in pixels) applied to the map view when zooming to a cluster, preventing points from being clipped at the edges.
|
|
172
|
+
* Specified as [top, right, bottom, left].
|
|
173
|
+
*
|
|
174
|
+
* @defaultValue [20, 20, 20, 20]
|
|
175
|
+
*/
|
|
176
|
+
readonly fitClusterPadding: import("@angular/core").InputSignal<[number, number, number, number]>;
|
|
177
|
+
/**
|
|
178
|
+
* For Point geometry, padding (in pixels) to be cleared to fit the point inside the view after a click on it.
|
|
179
|
+
* Values in the array are: [top, right, bottom, left].
|
|
180
|
+
*
|
|
181
|
+
* @defaultValue [20, 20, 20, 20]
|
|
182
|
+
*/
|
|
183
|
+
readonly fitPointPadding: import("@angular/core").InputSignal<number[]>;
|
|
184
|
+
/**
|
|
185
|
+
* For GeoJson, padding (in pixels) to be cleared to fit the GeoJson inside the view after a click on it.
|
|
186
|
+
* Values in the array are: [top, right, bottom, left].
|
|
187
|
+
*
|
|
188
|
+
* @defaultValue [20, 20, 20, 20]
|
|
189
|
+
*/
|
|
190
|
+
readonly fitGeoJsonPadding: import("@angular/core").InputSignal<number[]>;
|
|
191
|
+
/**
|
|
192
|
+
* Cutoff text for tooltips, when cluster combines more than 4 features
|
|
193
|
+
*
|
|
194
|
+
* @deprecated Use `SiMapTooltipComponent` instead to set the `moreText` input e.g. `<si-map ...><si-map-tooltip [moreText]="'KEY_MORE'" /></si-map>`.
|
|
195
|
+
*
|
|
196
|
+
* @defaultValue
|
|
197
|
+
* ```
|
|
198
|
+
* $localize`:@@SI_MAPS.TOOLTIP_MORE_TEXT:and {{length}} more...`
|
|
199
|
+
* ```
|
|
200
|
+
*/
|
|
201
|
+
readonly moreText: import("@angular/core").InputSignal<import("@siemens/element-translate-ng/translate").TranslatableString>;
|
|
202
|
+
/**
|
|
203
|
+
* Show multiple worlds, including points that cross the 180th meridian.
|
|
204
|
+
*
|
|
205
|
+
* @defaultValue true
|
|
206
|
+
*/
|
|
207
|
+
readonly multiWorld: import("@angular/core").InputSignal<boolean>;
|
|
208
|
+
/**
|
|
209
|
+
* Show the label permanently next to the point.
|
|
210
|
+
* Normally the label is shown on hover or click.
|
|
211
|
+
* By enabling this it will always be visible next to the marker.
|
|
212
|
+
*
|
|
213
|
+
* @defaultValue false
|
|
214
|
+
*/
|
|
215
|
+
readonly alwaysShowLabels: import("@angular/core").InputSignal<boolean>;
|
|
216
|
+
/**
|
|
217
|
+
* Maximum number of characters per line for always displayed labels of a point.
|
|
218
|
+
* If the label exceeds this limit, it will be wrapped or trimmed.
|
|
219
|
+
* If set to 0, label trimming will be disabled.
|
|
220
|
+
* This setting is effective only when {@link alwaysShowLabels} is enabled.
|
|
221
|
+
* Important: Changing this is not recommended in most cases and may cause issues with positioning of the labels.
|
|
222
|
+
*
|
|
223
|
+
* @defaultValue 20
|
|
224
|
+
*/
|
|
225
|
+
readonly maxLabelLineLength: import("@angular/core").InputSignal<number>;
|
|
226
|
+
/**
|
|
227
|
+
* Maximum number of lines for always displayed labels of a point.
|
|
228
|
+
* If the label exceeds this limit, it will be trimmed.
|
|
229
|
+
* This setting is effective only when {@link alwaysShowLabels} is enabled and {@link maxLabelLineLength} is not 0.
|
|
230
|
+
* Important: Changing this is not recommended in most cases and may cause issues with positioning of the labels.
|
|
231
|
+
*
|
|
232
|
+
* @defaultValue 3
|
|
233
|
+
*/
|
|
234
|
+
readonly maxLabelLines: import("@angular/core").InputSignal<number>;
|
|
235
|
+
/**
|
|
236
|
+
* Emitted when points on the map are selected or de-selected
|
|
237
|
+
*/
|
|
238
|
+
readonly pointsSelected: import("@angular/core").OutputEmitterRef<MapPoint[]>;
|
|
239
|
+
/**
|
|
240
|
+
* Emitted when the points are available as features. So consumers can call methods like `zoomToPoints()` on the actual point list.
|
|
241
|
+
*/
|
|
242
|
+
readonly pointsRefreshed: import("@angular/core").OutputEmitterRef<void>;
|
|
243
|
+
protected readonly popover: import("@angular/core").Signal<SiMapPopoverComponent>;
|
|
244
|
+
protected readonly popoverElement: import("@angular/core").Signal<ElementRef<any>>;
|
|
245
|
+
protected readonly defaultTooltip: import("@angular/core").Signal<SiMapTooltipComponent | undefined>;
|
|
246
|
+
protected readonly projectedTooltip: import("@angular/core").Signal<SiMapTooltipComponent | undefined>;
|
|
247
|
+
protected readonly tooltip: import("@angular/core").Signal<SiMapTooltipComponent>;
|
|
248
|
+
protected readonly mapReference: import("@angular/core").Signal<ElementRef<HTMLElement>>;
|
|
249
|
+
/** OpenLayers map instance. */
|
|
250
|
+
map?: Map;
|
|
251
|
+
tooltipOverlay: Overlay;
|
|
252
|
+
popoverOverlay: Overlay;
|
|
253
|
+
/** @defaultValue false */
|
|
254
|
+
isClicked: boolean;
|
|
255
|
+
/** @defaultValue [] */
|
|
256
|
+
features: Feature[];
|
|
257
|
+
selected?: Feature;
|
|
258
|
+
targetFeature?: Feature;
|
|
259
|
+
protected attributionsLabel: import("@siemens/element-translate-ng/translate").TranslatableString;
|
|
260
|
+
protected zoomInLabel: import("@siemens/element-translate-ng/translate").TranslatableString;
|
|
261
|
+
protected zoomOutLabel: import("@siemens/element-translate-ng/translate").TranslatableString;
|
|
262
|
+
protected zoomToDefaultLabel: import("@siemens/element-translate-ng/translate").TranslatableString;
|
|
263
|
+
protected clusterInteraction?: SelectCluster;
|
|
264
|
+
private selectedCluster?;
|
|
265
|
+
private darkTheme;
|
|
266
|
+
private readonly mapService;
|
|
267
|
+
private readonly ngZone;
|
|
268
|
+
private readonly translateService;
|
|
269
|
+
constructor();
|
|
270
|
+
private layerFilter;
|
|
271
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
272
|
+
ngAfterViewInit(): void;
|
|
273
|
+
ngAfterViewChecked(): void;
|
|
274
|
+
ngOnDestroy(): void;
|
|
275
|
+
onThemeSwitchInternal(event: Event): void;
|
|
276
|
+
onThemeSwitch(dark: boolean): void;
|
|
277
|
+
/**
|
|
278
|
+
* @deprecated has no effect and will be removed in v48
|
|
279
|
+
*/
|
|
280
|
+
onResize(): void;
|
|
281
|
+
private removePixelRatioListener;
|
|
282
|
+
private readonly updatePixelRatio;
|
|
283
|
+
/**
|
|
284
|
+
* Changes the pixel ration in OL which is not supported directly by OL.
|
|
285
|
+
*/
|
|
286
|
+
private changeOpenLayerPixelRation;
|
|
287
|
+
/**
|
|
288
|
+
* Initialize map and it's layers
|
|
289
|
+
*/
|
|
290
|
+
init(): void;
|
|
291
|
+
private centerValid;
|
|
292
|
+
private fixCenter;
|
|
293
|
+
/**
|
|
294
|
+
* Setting up the layers for the map (cluster/vector layer)
|
|
295
|
+
*/
|
|
296
|
+
private setLayers;
|
|
297
|
+
/**
|
|
298
|
+
* Setting up the geoJson layer
|
|
299
|
+
*/
|
|
300
|
+
setGeoJsonLayer(): void;
|
|
301
|
+
private setTheme;
|
|
302
|
+
private refreshLayersStyle;
|
|
303
|
+
/**
|
|
304
|
+
* Set Map style
|
|
305
|
+
* @param dark - boolean if dark theme should be active or not
|
|
306
|
+
* @param key - the api key for the maptiler styleJSON
|
|
307
|
+
* @param styleJSON - a preexisting styleJSON as url with key already provided
|
|
308
|
+
*/
|
|
309
|
+
setMapStyle(dark?: boolean, key?: string, styleJSON?: string): void;
|
|
310
|
+
/**
|
|
311
|
+
* Set mapbox styles
|
|
312
|
+
* @param styleJSON - the styleJSON as a JSON object
|
|
313
|
+
*/
|
|
314
|
+
mapboxStyles(styleJSON: any): void;
|
|
315
|
+
/**
|
|
316
|
+
* Create overlay for tooltip and popover
|
|
317
|
+
* @param nativeProperties - native properties
|
|
318
|
+
* @param container - to create overlay in
|
|
319
|
+
* @param position - overlay positioning
|
|
320
|
+
*/
|
|
321
|
+
createOverlay(container: HTMLElement, position: Positioning, nativeProperties?: OverlayNativeProperties, isTooltip?: boolean): Overlay;
|
|
322
|
+
/**
|
|
323
|
+
* On feature hovering show tooltip and change cursor style
|
|
324
|
+
* @param event - A hovering event
|
|
325
|
+
*/
|
|
326
|
+
onFeatureHover(event: MapBrowserEvent<UIEvent>): void;
|
|
327
|
+
/** Display tooltip on hovering over feature type of Feature. */
|
|
328
|
+
displayTooltip(feats: FeatureLike[]): void;
|
|
329
|
+
private doShowTooltip;
|
|
330
|
+
/**
|
|
331
|
+
* Clicking on cluster event
|
|
332
|
+
* @param event - openlayers event
|
|
333
|
+
*/
|
|
334
|
+
onClusterClick(event: MapBrowserEvent<UIEvent>): void;
|
|
335
|
+
private emitSelection;
|
|
336
|
+
/**
|
|
337
|
+
* Zoom to cluster features
|
|
338
|
+
* @param clusterFeatures - features to zoom in
|
|
339
|
+
*/
|
|
340
|
+
zoomCluster(clusterFeatures: Feature[]): void;
|
|
341
|
+
/**
|
|
342
|
+
* Close popup
|
|
343
|
+
*/
|
|
344
|
+
closePopup(): boolean;
|
|
345
|
+
/**
|
|
346
|
+
* Return features inside feature object in case of cluster enabled/disabled
|
|
347
|
+
* @param feat - feature to get features from
|
|
348
|
+
*/
|
|
349
|
+
featureCallback(feat: FeatureLike, clusterHolder?: ClusterHolder): Feature[] | undefined;
|
|
350
|
+
/**
|
|
351
|
+
* Zoom to features, gets coordinates of points and creates bounding extent
|
|
352
|
+
* @param points - list of points to zoom in, if empty all points will be zoomed to, need to be the same reference as the input
|
|
353
|
+
* @param zoomLevel - number for level to zoom in
|
|
354
|
+
*/
|
|
355
|
+
zoomToPoints(points: MapPoint[], zoomLevel: number, shouldAnimate?: boolean): void;
|
|
356
|
+
/**
|
|
357
|
+
* Zoom to features, gets coordinates of features and creates bounding extent
|
|
358
|
+
* @param features - list of features to zoom in, if empty all features will be zoomed to
|
|
359
|
+
* @param zoomLevel - number for level to zoom in
|
|
360
|
+
*/
|
|
361
|
+
zoomToFeatures(features: Feature[], zoomLevel: number, shouldAnimate?: boolean): void;
|
|
362
|
+
/**
|
|
363
|
+
* Zoom to GeoJson using coordinates of point of click
|
|
364
|
+
* @param coordinate - coordinates of point of click
|
|
365
|
+
* @param zoomLevel - number for level to zoom in
|
|
366
|
+
*/
|
|
367
|
+
zoomToGeoJson(coordinate: Coordinate, zoomLevel: number, shouldAnimate?: boolean): void;
|
|
368
|
+
private zoomToCoordinates;
|
|
369
|
+
/**
|
|
370
|
+
* Refresh points with new set of points
|
|
371
|
+
* @param points - to refresh with
|
|
372
|
+
*/
|
|
373
|
+
refresh(points: MapPoint[], zoomToFeatures?: boolean): void;
|
|
374
|
+
private doRefresh;
|
|
375
|
+
clear(): void;
|
|
376
|
+
private doClear;
|
|
377
|
+
/**
|
|
378
|
+
* Selecting the certain point on map with API
|
|
379
|
+
* @param point - which select
|
|
380
|
+
*/
|
|
381
|
+
select(point: MapPoint, maxZoomLevel?: number): void;
|
|
382
|
+
private doSelect;
|
|
383
|
+
/** API for feature clicking with extra properties. */
|
|
384
|
+
featureClick(feature: Feature, event?: any, zoom?: boolean): void;
|
|
385
|
+
private setPopOver;
|
|
386
|
+
/**
|
|
387
|
+
* Show tooltip with content on hover over feature
|
|
388
|
+
* @param feature - to show popup on
|
|
389
|
+
*/
|
|
390
|
+
showTooltipContent(feature: Feature): boolean;
|
|
391
|
+
/** Sends data into cluster tooltip based on number of
|
|
392
|
+
* @param features - in it
|
|
393
|
+
* */
|
|
394
|
+
showClusterTooltipContent(features: Feature[], cluster?: Feature): boolean;
|
|
395
|
+
hideOverlays(): void;
|
|
396
|
+
private getFeatureCoordinate;
|
|
397
|
+
/**
|
|
398
|
+
* Calculates cluster center coordinates (lon, lat) for cluster tooltip positioning base on
|
|
399
|
+
* @param features - (lon, lan)
|
|
400
|
+
*/
|
|
401
|
+
private calculateClusterCoordinates;
|
|
402
|
+
private showClusterPopover;
|
|
403
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiMapComponent, never>;
|
|
404
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiMapComponent, "si-map", never, { "points": { "alias": "points"; "required": false; "isSignal": true; }; "geoJson": { "alias": "geoJson"; "required": false; "isSignal": true; }; "styleFunction": { "alias": "styleFunction"; "required": false; "isSignal": true; }; "geoJsonProjection": { "alias": "geoJsonProjection"; "required": false; "isSignal": true; }; "markerAnimation": { "alias": "markerAnimation"; "required": false; "isSignal": true; }; "cluster": { "alias": "cluster"; "required": false; "isSignal": true; }; "groupColors": { "alias": "groupColors"; "required": false; "isSignal": true; }; "nativeProperties": { "alias": "nativeProperties"; "required": false; "isSignal": true; }; "styleJson": { "alias": "styleJson"; "required": false; "isSignal": true; }; "displayTooltipOnHover": { "alias": "displayTooltipOnHover"; "required": false; "isSignal": true; }; "displayPopoverOnClick": { "alias": "displayPopoverOnClick"; "required": false; "isSignal": true; }; "displayPopoverOnHover": { "alias": "displayPopoverOnHover"; "required": false; "isSignal": true; }; "maptilerKey": { "alias": "maptilerKey"; "required": false; "isSignal": true; }; "displayTooltipOnClusterHover": { "alias": "displayTooltipOnClusterHover"; "required": false; "isSignal": true; }; "clusterDistance": { "alias": "clusterDistance"; "required": false; "isSignal": true; }; "featureSelectZoom": { "alias": "featureSelectZoom"; "required": false; "isSignal": true; }; "featureClickZoom": { "alias": "featureClickZoom"; "required": false; "isSignal": true; }; "clusterClickZoom": { "alias": "clusterClickZoom"; "required": false; "isSignal": true; }; "globalZoom": { "alias": "globalZoom"; "required": false; "isSignal": true; }; "autoZoomFeatureClick": { "alias": "autoZoomFeatureClick"; "required": false; "isSignal": true; }; "autoZoomClusterClick": { "alias": "autoZoomClusterClick"; "required": false; "isSignal": true; }; "popoverComponent": { "alias": "popoverComponent"; "required": false; "isSignal": true; }; "clusterPopoverComponent": { "alias": "clusterPopoverComponent"; "required": false; "isSignal": true; }; "popoverComponentProps": { "alias": "popoverComponentProps"; "required": false; "isSignal": true; }; "popoverCloseOnClick": { "alias": "popoverCloseOnClick"; "required": false; "isSignal": true; }; "fitClusterPadding": { "alias": "fitClusterPadding"; "required": false; "isSignal": true; }; "fitPointPadding": { "alias": "fitPointPadding"; "required": false; "isSignal": true; }; "fitGeoJsonPadding": { "alias": "fitGeoJsonPadding"; "required": false; "isSignal": true; }; "moreText": { "alias": "moreText"; "required": false; "isSignal": true; }; "multiWorld": { "alias": "multiWorld"; "required": false; "isSignal": true; }; "alwaysShowLabels": { "alias": "alwaysShowLabels"; "required": false; "isSignal": true; }; "maxLabelLineLength": { "alias": "maxLabelLineLength"; "required": false; "isSignal": true; }; "maxLabelLines": { "alias": "maxLabelLines"; "required": false; "isSignal": true; }; }, { "points": "pointsChange"; "pointsSelected": "pointsSelected"; "pointsRefreshed": "pointsRefreshed"; }, ["projectedTooltip"], ["si-map-tooltip"], true, never>;
|
|
405
|
+
}
|
|
406
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./si-map.component";
|
|
3
|
+
import * as i2 from "./components/si-map-popover/si-map-popover.component";
|
|
4
|
+
import * as i3 from "./components/si-map-tooltip/si-map-tooltip.component";
|
|
5
|
+
export declare class SiMapModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiMapModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SiMapModule, never, [typeof i1.SiMapComponent, typeof i2.SiMapPopoverComponent, typeof i3.SiMapTooltipComponent], [typeof i1.SiMapComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SiMapModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SI_TRANSLATABLE_VALUES } from '@siemens/element-translate-ng/translate';
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
const provideSiMapsTranslatableOverrides = values => ({
|
|
6
|
+
useValue: values,
|
|
7
|
+
multi: true,
|
|
8
|
+
provide: SI_TRANSLATABLE_VALUES
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Copyright (c) Siemens 2016 - 2025
|
|
13
|
+
* SPDX-License-Identifier: MIT
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Generated bundle index. Do not edit.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
export { provideSiMapsTranslatableOverrides };
|
|
21
|
+
//# sourceMappingURL=siemens-maps-ng-translate.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"siemens-maps-ng-translate.mjs","sources":["../../../../projects/maps-ng/translate/si-translatable-keys.interface.ts","../../../../projects/maps-ng/translate/si-translatable-overrides.provider.ts","../../../../projects/maps-ng/translate/index.ts","../../../../projects/maps-ng/translate/siemens-maps-ng-translate.ts"],"sourcesContent":["/* eslint-disable */\n\n// Auto-generated file. Run 'npm run build:all:update-translatable-keys' to update.\n\nexport interface SiTranslatableKeys {\n 'SI_MAPS.ATTRIBUTIONS_BUTTON'?: string;\n 'SI_MAPS.TOOLTIP_MORE_TEXT'?: string;\n 'SI_MAPS.ZOOM_IN_BUTTON'?: string;\n 'SI_MAPS.ZOOM_OUT_BUTTON'?: string;\n 'SI_MAPS.ZOOM_TO_DEFAULT_BUTTON'?: string;\n}\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nimport { Provider } from '@angular/core';\nimport { SI_TRANSLATABLE_VALUES } from '@siemens/element-translate-ng/translate';\n\nimport { SiTranslatableKeys } from './si-translatable-keys.interface';\n\nexport const provideSiMapsTranslatableOverrides: (\n values: SiTranslatableKeys\n) => Provider = values => ({\n useValue: values,\n multi: true,\n provide: SI_TRANSLATABLE_VALUES\n});\n","/**\n * Copyright (c) Siemens 2016 - 2025\n * SPDX-License-Identifier: MIT\n */\nexport * from './si-translatable-keys.interface';\nexport * from './si-translatable-overrides.provider';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAA;;MCSa,kCAAkC,GAE/B,MAAM,KAAK;AACzB,IAAA,QAAQ,EAAE,MAAM;AAChB,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,OAAO,EAAE;AACV,CAAA;;ACfD;;;AAGG;;ACHH;;AAEG;;;;"}
|