constructor(private contextMenuService: ContextMenuService,
private mapEventsManager: MapEventsManagerService,
private coordinateConverter: CoordinateConverter) {
.register({ event: CesiumEvent.RIGHT_CLICK, pick: PickOptions.NO_PICK })
const position = this.coordinateConverter.screenToCartesian3(event.movement.endPosition);
this.contextMenuService.open<ContextMenuData>(
MyCustomContextMenuComponent,
item: {name: 'Cool name'},
console.log('do action');
this.contextMenuService.close();