Skip to content

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

Description

@ISchwarz23

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions