@regionerne/gis-komponent 0.0.66 → 0.0.67
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.
|
@@ -4120,11 +4120,11 @@ class ToolboxComponent {
|
|
|
4120
4120
|
}
|
|
4121
4121
|
}
|
|
4122
4122
|
setNewMapDimensions() {
|
|
4123
|
-
this._layoutService.mapResizedSubject.next(true);
|
|
4124
4123
|
this.map.getTargetElement().style.width = this.mapWidth + 'px';
|
|
4125
4124
|
this.map.getTargetElement().style.height = this.mapHeight + 'px';
|
|
4126
4125
|
this.map.updateSize();
|
|
4127
4126
|
this._layoutService.map = this.map;
|
|
4127
|
+
this._layoutService.mapResizedSubject.next(true);
|
|
4128
4128
|
}
|
|
4129
4129
|
doPrint() {
|
|
4130
4130
|
let htmlElement = this.map.getViewport();
|
|
@@ -4863,6 +4863,9 @@ class LegendsListComponent {
|
|
|
4863
4863
|
this._layerHelperService.activeLayersChanged.subscribe(() => this._setFilteredLegends().subscribe(result => this.filteredLayersDetailed = result));
|
|
4864
4864
|
}
|
|
4865
4865
|
ngOnChanges(changes) {
|
|
4866
|
+
this._layoutService.mapResizedSubject.subscribe(() => {
|
|
4867
|
+
this.dragPosition = this._layoutService.keepWidgetInViewPort(this.dragPosition, this.POSITION_STORAGE_KEY, this.collapsed ? WidgetConstants.collapsedHeight : WidgetConstants.legendsHeight, this.collapsed ? WidgetConstants.collapsedWidth : WidgetConstants.legendsWidth);
|
|
4868
|
+
});
|
|
4866
4869
|
if (changes['profile'] && this.profile) {
|
|
4867
4870
|
this.collapsed = this.profile.legendsListFolded;
|
|
4868
4871
|
this._loadPosition(this.collapsed);
|