Comments (4)
I created a repo showing a basic usage with Require.js.
Thanks for contribution.
from satellite-js.
I got it working with just this code:
<script type="text/javascript" src="scripts/require.js"></script>
<script>
require([
"scripts/satellite.js/dist/satellite",
], function(satellite){
console.log(satellite);
/* your satellite code here */
});
</script>
The folder structure is as follows:
index.html <-- above code in here
scripts/require.js
scripts/satellite.js/dist/satellite.js
Another unrelated note:
This works with Esri's JS API too, just make sure to put the "dojo/domReady!" dependency last or else you will receive errors like TypeError: satellite.twoline2satrec is not a function
and console.log(satellite)
will result in an HTMLDocument
object rather than the intended one.
from satellite-js.
Given how old this issue is, can we close it?
from satellite-js.
from satellite-js.
Related Issues (20)
- Does satellite.js provide a way to determine if a satellite is above a ground station? HOT 2
- ecfToEci not defined in index.d.ts HOT 1
- TLE Errors - CelesTrak data now at https://celestrak.org HOT 1
- Two Errors in Existing Implementation HOT 8
- Detail units in README HOT 1
- Possible issue with accuracy HOT 5
- Non-LEO orbits do not properly display HOT 2
- Idea: WASM version of the library? HOT 10
- Cannot read properties of undefined (reading 'twoline2satrec') HOT 2
- How can I get the time for when a satellite will be over the antemeridian again? HOT 2
- Feature request: sgp4-xp HOT 3
- jday not in index.d.ts HOT 3
- Error in calculating the Doppler Factor. HOT 5
- Vulnerabilities in devDependencies
- unable to import in node.js
- Uncaught (in promise) TypeError: longstr1 is undefined
- satellite.min.js HOT 4
- Getting lat/lon for a whole day. HOT 7
- Dates can effect propagation drasitically HOT 7
- In cesuim, I want draw the orbit of the satellite,in ECI Coordinate systemγ HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from satellite-js.