Hi
I used cesium viewerDragDropMixin to drag and drop my kml file but when kml filed loaded to viewer 3d model deleted immediately. i think there is a line code in viewerDragDropMixin removes all entity that cause this problem.
How can i add my local kml file to cesium and i have both 3model and kml file ?
Hi @mohamad,
Welcome to the community!
You are correct, by default viewerDragDropMixin
has the property clearOnDrop
set to true
. This means that dropping files will clear all existing data sources. I recommend setting clearOnDrop
set to false
, as I think it is more appropriate for your use case.
Best,
Sam
1 Like
@mohamad of course! Happy to help out