I want to get an event when CZML is dropped.
(Get before drawing)
Please lend your wisdom!
Thank you.
ver:1.58
I want to get an event when CZML is dropped.
(Get before drawing)
Please lend your wisdom!
Thank you.
ver:1.58
Are you referring to dragging and dropping CZML files in the Cesium Viewer (https://cesiumjs.org/Cesium/Build/Apps/CesiumViewer/index.html) ?
If so, it looks like the DragDropMixin (https://cesiumjs.org/Cesium/Build/Documentation/viewerDragDropMixin.html?classFilter=Drag) doesn’t expose an event for that. I think it might be easiest to implement your own JavaScript drag and drop, and you’ll have full control over what it does that way.
Here’s a nice guide on it:
https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API
thank you for your comment.
I will use your advice as a reference.