@provoly/dashboard 1.4.46 → 1.4.48
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/esm2022/lib/dashboard/store/dashboard.effects.mjs +4 -1
- package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +6 -7
- package/esm2022/toolbox/components/edit-presentation/edit-presentation.component.mjs +1 -1
- package/esm2022/toolbox/components/save-view/save-view.component.mjs +1 -1
- package/esm2022/toolbox/shared/presentation-form/presentation-form.component.mjs +22 -8
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +2 -2
- package/esm2022/widgets/widget-map/interaction/tooltip-manager.class.mjs +12 -1
- package/fesm2022/provoly-dashboard-presentation.mjs +5 -6
- package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-toolbox.mjs +23 -9
- package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +12 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +3 -0
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/package.json +7 -7
- package/presentation/components/add-edit-presentation/add-edit-presentation.component.d.ts +2 -2
- package/toolbox/shared/presentation-form/presentation-form.component.d.ts +4 -3
- package/widgets/widget-map/interaction/tooltip-manager.class.d.ts +1 -0
|
@@ -1171,6 +1171,7 @@ class TooltipManager {
|
|
|
1171
1171
|
this.classicFeatures$ = new BehaviorSubject([]);
|
|
1172
1172
|
this.tooltipNumber = 0;
|
|
1173
1173
|
this.tooltipDisplayedIndex$ = new BehaviorSubject(0);
|
|
1174
|
+
this.inter = 0;
|
|
1174
1175
|
}
|
|
1175
1176
|
init(tooltipFactoryService, injector, store, subscriptions, widgetSize$, displayHeader$, map, popup, popupContent, interactionManager, parent) {
|
|
1176
1177
|
this.tooltipFactoryService = tooltipFactoryService;
|
|
@@ -1227,8 +1228,12 @@ class TooltipManager {
|
|
|
1227
1228
|
}
|
|
1228
1229
|
}));
|
|
1229
1230
|
window.addEventListener('forceCloseMapTooltip', () => {
|
|
1231
|
+
clearInterval(this.inter);
|
|
1230
1232
|
this.clearTooltip();
|
|
1231
1233
|
});
|
|
1234
|
+
window.addEventListener('clearTooltipInterval', () => {
|
|
1235
|
+
clearInterval(this.inter);
|
|
1236
|
+
});
|
|
1232
1237
|
this.addOverlayOnInteraction();
|
|
1233
1238
|
return this;
|
|
1234
1239
|
}
|
|
@@ -1241,6 +1246,7 @@ class TooltipManager {
|
|
|
1241
1246
|
this.map.addOverlay(this.interactionPopupOverlay);
|
|
1242
1247
|
}
|
|
1243
1248
|
const popupListener = (event) => {
|
|
1249
|
+
clearInterval(this.inter);
|
|
1244
1250
|
const values = this.map.getFeaturesAtPixel(event.pixel, { hitTolerance: 5 });
|
|
1245
1251
|
const valuesToDisplay = [...new Set(values.map((value) => value.get('id')).filter((id) => !!id))]
|
|
1246
1252
|
.map((id) => values.find((value) => value.get('id') === id))
|
|
@@ -1254,6 +1260,9 @@ class TooltipManager {
|
|
|
1254
1260
|
const wmsLayers = this.parent.getWMSLayers();
|
|
1255
1261
|
if (wmsLayers) {
|
|
1256
1262
|
this.getFeatureFromServer(wmsLayers, event.coordinate);
|
|
1263
|
+
this.inter = setInterval(() => {
|
|
1264
|
+
this.getFeatureFromServer(wmsLayers, event.coordinate);
|
|
1265
|
+
}, 60000);
|
|
1257
1266
|
}
|
|
1258
1267
|
this.tooltipEvent = event;
|
|
1259
1268
|
this.calculatedTooltipPosition = undefined;
|
|
@@ -1295,6 +1304,7 @@ class TooltipManager {
|
|
|
1295
1304
|
if (empty) {
|
|
1296
1305
|
this.store.dispatch(DashboardActions.resetWmsFeatures({ componentId: this.parent.id }));
|
|
1297
1306
|
this.classicFeatures$.next([]);
|
|
1307
|
+
clearInterval(this.inter);
|
|
1298
1308
|
}
|
|
1299
1309
|
}
|
|
1300
1310
|
tooltipMove(number) {
|
|
@@ -1343,6 +1353,7 @@ class TooltipManager {
|
|
|
1343
1353
|
this.store.dispatch(DashboardActions.resetWmsFeatures({ componentId: this.parent.id }));
|
|
1344
1354
|
this.previousTooltipSub?.unsubscribe();
|
|
1345
1355
|
this.previousTooltip?.destroy();
|
|
1356
|
+
clearInterval(this.inter);
|
|
1346
1357
|
}
|
|
1347
1358
|
}
|
|
1348
1359
|
|
|
@@ -1966,7 +1977,7 @@ class WidgetMapComponent extends DataWidgetComponent {
|
|
|
1966
1977
|
setTimeout(() => {
|
|
1967
1978
|
const toApplyLayers = [...layers, ...mapStyleLayer];
|
|
1968
1979
|
this.map.setLayers(toApplyLayers);
|
|
1969
|
-
this.fitMapForObjects(selectedIds, extents);
|
|
1980
|
+
//this.fitMapForObjects(selectedIds, extents);
|
|
1970
1981
|
this.map.updateSize();
|
|
1971
1982
|
this.map
|
|
1972
1983
|
.getAllLayers()
|