angular-cesium icon indicating copy to clipboard operation
angular-cesium copied to clipboard

Selection not working anymore after disposing polyline creation using PolylinesEditorService

Open ISchwarz23 opened this issue 2 years ago • 0 comments

Intended outcome: When using the PoylinesEditorService to let the user create polylines on the map, the user interaction should be the default behavior after the polyline creation is finished.

Actual outcome: The polyline creation is working as expected. The editing process is also finished as expected (clicks won't produce new anchor points), but when clicking on an entity, it is not selected anymore.

How to reproduce the issue: Start polyline creation, when editor "CHANGE_TO_EDIT" is called, process the result and dispose edit process. When creation is finised/disposed, entities cannot be selected anymore.

this.editing$ = this.editor.create();
this.editing$.subscribe((editResult) => {
    if (editResult.editAction === EditActions.CHANGE_TO_EDIT) {
        const result = this.editing$.getCurrentPoints();
        // process result here
        this.editing$.disable();
        this.editing$.dispose();
   }
});

Version

ISchwarz23 avatar Jul 05 '22 11:07 ISchwarz23