The purpose of this example is to introduce and demonstrate how to use two lines of root numbers to dynamically calculate and display the positions and trajectories of multiple satellites in the vue+satellite project. Update the position and angle of the satellite every second, and load a trajectory from the current time to a fixed time (such as 720 minutes later).
Directly copy the following vue+openlayers source sample code, operate in 2 minutes to achieve the effect
Article directory
example effect
add dependencies
install dayjs
npm install dayjs
configuration method
1) View the basic settings: https://xiaozhuanlan.com/topic/5180746392
2) Paste the above source code into src/views/Home.vue