Skip to content

Figure our how to make videos with Cesium #2

Open
rjm11010 opened this issue Jun 23, 2017 · 7 comments
Open

Figure our how to make videos with Cesium #2

rjm11010 opened this issue Jun 23, 2017 · 7 comments

Comments

@rjm11010
Copy link
Contributor

I have not idea how hard this is with Cesium, but I'm hoping they somehow using the time information from the data to make it easy.

In either case, it's something we have to figure out.

@joh13010
Copy link
Contributor

So I have been working the last few days to make some sort of menu overlay to be able to upload a CSV file to the program. I thought I remember you saying before that Cesium had its own functionality that allowed you to create a menu overlay on top of the map but I don't see much documentation for it besides the Sandcastle toolbar functionalities which aren't applicable since I'm not using their Sandcastle environment to write my code. Is there anything that you remember that might help or would it be best for me to just make my own using HTML elements? Thank you

@rjm11010
Copy link
Contributor Author

I'm really sorry for replying so late to this. I vote for whatever is easier.
We can have the program split into 2 pages.

  1. To intake the data
  2. Present it

I will look into it myself as well tomorrow (Friday 21).

@joh13010
Copy link
Contributor

Hey Reynaldo,
So I am having some trouble getting the timeline on the page to work properly. My goal is to set the bounds of the timeline to the first and last times included in the uploaded CSV file. Then on each tick, a function would be called that would check whether a new data point should be displayed or the current point should remain. I'm having a hard time differentiating between Cesium's Clock, TimeLine, and Animation and have been unable to change the range of the timeline at all using arbitrary dates that I hardcoded in for the time being. Do you think you could look into this when you get a chance? Thanks

@rjm11010
Copy link
Contributor Author

Okay. Can you push your latest changes?

I found a way to overlay html elements on Cesium to show the Metadata. You're right that Cesium doesn't have their own elements for that.

You would create the element something like this.

@joh13010
Copy link
Contributor

Hey Reynaldo,
I was just wondering if you could take a quick look at the program and possibly see why the flyTo function isn't working when points are updated at the end of my flyToPoint function. After that, the program should be all set to go. Thanks.

@rjm11010
Copy link
Contributor Author

Okay. I'm taking a look now. Sorry for not getting back to your earlier issue.

@rjm11010
Copy link
Contributor Author

I think it's because flyTo and zoomTo are asynchronous methods they don't gaurantee completetion. That's why I always see the last point plotted, and not the others. I'm trying to think of a solution.

P.S. I'm sorry for giving you out of order data. I'm going to upload data order from earliest to latest (i.e. increasing order)

Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants