Skip to content

Commit

Permalink
fix(*): layer and modify control issues
Browse files Browse the repository at this point in the history
  • Loading branch information
cbourget authored and mbarbeau committed Aug 7, 2020
1 parent b28c650 commit 3be1301
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/geo/src/lib/geometry/shared/controls/modify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,9 @@ export class ModifyControl {
this.deactivateDrawInteraction();

this.activateModifyInteraction();
this.activateTranslateInteraction();
if (this.translate === true) {
this.activateTranslateInteraction();
}
this.subscribeToDrawKeyDown();

this.end$.next(this.getOlGeometry());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class LayerListBindingDirective implements OnInit, OnDestroy {

ngOnInit() {
// Override input layers
this.component.layers = [];
// this.component.layers = [];
this.layersOrResolutionChange$$ = combineLatest([
this.mapService.getMap().layers$,
this.mapService.getMap().viewController.resolution$]
Expand Down

0 comments on commit 3be1301

Please sign in to comment.