Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selection not working anymore after disposing polyline creation using PolylinesEditorService #427

Open
ISchwarz23 opened this issue Jul 5, 2022 · 0 comments

Comments

@ISchwarz23
Copy link

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

  • angular-cesium@0.0.73
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant