Drag and drop events

hi, can you say me please, if can we add drag and drop events for components on viewer?

1 Like

Hi @Rustam_Gasymov,

Thanks for your question! CesiumJS does support dragging and dropping data into the scene. The implementation should look something like this.

viewer.extend(viewerDragDropMixin, {
	clearOnDrop: false,
	flyToOnDrop: true
});

For more information, I recommend that you look through our viewerDragDropMixin documentation.

-Sam

Thanks for your answer, can we move entities by this way?

Hi @Rustam_Gasymov,

You can move entities into the scene :+1: Are you interested in moving entities to different locations in the scene?

-Sam

Yes, i want to move entites in all map

@Rustam_Gasymov,

Understood! I haven’t yet seen a simple implementation for this functionality, however, I am going to keep investigating. I am wondering if anyone from the rest of the community has any suggestions?

-Sam