@regionerne/gis-komponent 0.0.112 → 0.0.113
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.
|
@@ -3196,6 +3196,11 @@ class ToolboxComponent {
|
|
|
3196
3196
|
selectedDocumentSearchMode = 'document-search-by-point';
|
|
3197
3197
|
activateShowInputWKT() {
|
|
3198
3198
|
this._clearAllInteractions();
|
|
3199
|
+
if (this.activeMode === 'wkt-input') {
|
|
3200
|
+
this.activeMode = null;
|
|
3201
|
+
this.showInputWKT = false;
|
|
3202
|
+
return;
|
|
3203
|
+
}
|
|
3199
3204
|
this.showInputWKT = true;
|
|
3200
3205
|
this.activeMode = 'wkt-input';
|
|
3201
3206
|
this._active = 'No';
|
|
@@ -3744,6 +3749,10 @@ class ToolboxComponent {
|
|
|
3744
3749
|
_actionSource = new VectorSource();
|
|
3745
3750
|
clipHole() {
|
|
3746
3751
|
this._clearAllInteractions();
|
|
3752
|
+
if (this.activeMode === 'clip-hole') {
|
|
3753
|
+
this.activeMode = null;
|
|
3754
|
+
return;
|
|
3755
|
+
}
|
|
3747
3756
|
this.activeMode = 'clip-hole';
|
|
3748
3757
|
const clipHoleDraw = new Draw({
|
|
3749
3758
|
source: this._actionSource,
|
|
@@ -3827,6 +3836,10 @@ class ToolboxComponent {
|
|
|
3827
3836
|
}
|
|
3828
3837
|
split() {
|
|
3829
3838
|
this._clearAllInteractions();
|
|
3839
|
+
if (this.activeMode === 'split') {
|
|
3840
|
+
this.activeMode = null;
|
|
3841
|
+
return;
|
|
3842
|
+
}
|
|
3830
3843
|
this.activeMode = 'split';
|
|
3831
3844
|
const splitInteraction = new Draw({
|
|
3832
3845
|
type: 'LineString',
|
|
@@ -3908,6 +3921,11 @@ class ToolboxComponent {
|
|
|
3908
3921
|
return this._deleteSelect;
|
|
3909
3922
|
}
|
|
3910
3923
|
startDelete() {
|
|
3924
|
+
if (this.activeMode === 'delete') {
|
|
3925
|
+
this.activeMode = null;
|
|
3926
|
+
this._clearAllInteractions();
|
|
3927
|
+
return;
|
|
3928
|
+
}
|
|
3911
3929
|
this._clearAllInteractions();
|
|
3912
3930
|
this.activeMode = 'delete';
|
|
3913
3931
|
this.map.addInteraction(this.deleteSelect);
|
|
@@ -4378,7 +4396,7 @@ class ToolboxComponent {
|
|
|
4378
4396
|
ngOnInit() {
|
|
4379
4397
|
this._originalMapHeight = this.map.getSize()[1];
|
|
4380
4398
|
this._originalMapWidth = this.map.getSize()[0];
|
|
4381
|
-
this.bufferInMeters = this.settings.defaultBufferInMeters ?? 0.2;
|
|
4399
|
+
this.bufferInMeters = this.settings.defaultBufferInMeters ?? -0.2;
|
|
4382
4400
|
this._resizeSubscription = this._layoutService.mapResizedSubject.subscribe(async () => {
|
|
4383
4401
|
this.dragPosition = await this._layoutService.keepWidgetInViewPort(this.dragPosition, this._POSITION_STORAGE_KEY, this.collapsed ? WidgetConstants.collapsedHeight : WidgetConstants.toolboxHeight, this.collapsed ? WidgetConstants.collapsedWidth : WidgetConstants.toolboxWidth);
|
|
4384
4402
|
});
|
|
@@ -4578,6 +4596,10 @@ class ToolboxComponent {
|
|
|
4578
4596
|
}
|
|
4579
4597
|
startMergeFeatures() {
|
|
4580
4598
|
this._clearAllInteractions();
|
|
4599
|
+
if (this.activeMode === 'merge-features') {
|
|
4600
|
+
this.activeMode = null;
|
|
4601
|
+
return;
|
|
4602
|
+
}
|
|
4581
4603
|
this.activeMode = 'merge-features';
|
|
4582
4604
|
this._mergeService.startMerge(this.selectedDrawItem.typeId, () => { this.activeMode = null; });
|
|
4583
4605
|
}
|
|
@@ -4985,7 +5007,9 @@ class ActiveObjectsComponent {
|
|
|
4985
5007
|
feature: f,
|
|
4986
5008
|
id: f.getId()
|
|
4987
5009
|
}));
|
|
4988
|
-
this.
|
|
5010
|
+
if (this._current.gisKomponentSettings.containsCheck?.enabled) {
|
|
5011
|
+
this._runConflictAnalysis();
|
|
5012
|
+
}
|
|
4989
5013
|
}
|
|
4990
5014
|
});
|
|
4991
5015
|
this._featuresForHighlight$.subscribe({
|
|
@@ -5030,7 +5054,7 @@ class ActiveObjectsComponent {
|
|
|
5030
5054
|
endSession() {
|
|
5031
5055
|
this.sessionDone.emit();
|
|
5032
5056
|
}
|
|
5033
|
-
|
|
5057
|
+
_runConflictAnalysis() {
|
|
5034
5058
|
const unlockedFeatures = this.activeFeatures.filter(f => !f.locked);
|
|
5035
5059
|
const conflictSearches$ = unlockedFeatures.map(f => this._conflictService.search(f.feature.getGeometry(), 1));
|
|
5036
5060
|
combineLatest(conflictSearches$).subscribe({
|