2019-02-20 13:00:22 -07:00
< head >
2019-05-21 10:39:08 -06:00
< script src = "https://cesiumjs.org/releases/1.57/Build/Cesium/Cesium.js" > < / script >
2020-01-11 22:54:29 -07:00
< link href = "https://cesiumjs.org/releases/1.57/Build/Cesium/Widgets/widgets.css" rel = "stylesheet" >
< script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js" > < / script >
2019-02-20 13:00:22 -07:00
< / head >
< style >
2019-04-30 17:30:04 -06:00
#overlay {
position: absolute;
left: 10px;
top: 10px;
background-color: rgba(0, 0, 0, 1);
color: white;
font-family: monospace;
padding: 1em;
}
2019-02-20 13:00:22 -07:00
< / style >
< div id = "cesiumContainer" style = "width: 100%; height:100%" > < / div >
2019-04-30 17:30:04 -06:00
< div id = "overlay" > < div > < span id = "credit" > < / span > < / div > < / div >
2019-02-20 13:00:22 -07:00
< script >
2020-01-11 22:54:29 -07:00
var timeElement = document.getElementById("credit");
2019-04-30 17:30:04 -06:00
var timeNode = document.createTextNode("");
timeElement.appendChild(timeNode)
2020-01-11 21:26:10 -07:00
timeNode.nodeValue = "SpaceCruft! SatNOGS"
2019-04-30 17:30:04 -06:00
Online = Cesium.CzmlDataSource.load("/czml")
2019-02-20 13:00:22 -07:00
Cesium.Ion.defaultAccessToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIwYmEwOTc5YS01N2I3LTRhYmQtOGE0MS1lNTkyMWU2ZmM3YWUiLCJpZCI6Njg1OCwic2NvcGVzIjpbImFzciIsImdjIl0sImlhdCI6MTU0NzU5ODkxOX0.p4alNyuyt_Eufuo8xX_SB6HKHuSixBTxgiVpD6UGI3Y';
2020-01-11 23:27:46 -07:00
var viewer = new Cesium.Viewer('cesiumContainer',{shadows:true,timeline:false,vrButton:false,homeButton:false,animation:false,baseLayerPicker:false,navigationInstructionsInitiallyVisible:false,navigationHelpButton:false,imageryProvider :new Cesium.MapboxImageryProvider({
2019-09-04 09:50:28 -06:00
mapId: 'mapbox.streets',
accessToken: 'pk.eyJ1IjoiY2hpYmlsbCIsImEiOiJjanZ6bmZjenEwMjdzM3luMXMxd3FzenMwIn0.RF4gf01lBWmUiXZFZwUcbA'
})});
2019-02-20 13:00:22 -07:00
viewer.terrainProvider = Cesium.createWorldTerrain();
viewer.scene.globe.shadows=Cesium.ShadowMode.CAST_ONLY
viewer.scene.globe.enableLighting = true
2019-04-30 17:30:04 -06:00
viewer.dataSources.add(Online)
2019-05-21 10:39:08 -06:00
const download = async () => {
Online = await Cesium.CzmlDataSource.load("/czml")
}
2019-03-13 10:50:50 -06:00
setInterval(function(){
2019-05-21 10:39:08 -06:00
download()
update()
2019-09-04 09:50:28 -06:00
}, 1000*60*15);
2019-04-30 17:30:04 -06:00
function update(){
viewer.dataSources.removeAll()
2019-05-21 10:39:08 -06:00
viewer.dataSources.add(Online)
2019-04-30 17:30:04 -06:00
}
viewer._bottomContainer.innerText = ""
2019-02-20 13:00:22 -07:00
< / script >
2020-01-11 22:54:29 -07:00
Visual work licensed < a rel = "license" href = "http://creativecommons.org/licenses/by-sa/4.0/" > CC by SA 4.0< / a > .
< a href = "https://gitlab.com/chibill/satnogsmap/tree/master" > Source Code< / a > by William Gaylord KD9KCK is AGPL.
This is a < A HREF = "https://spacecruft.org/spacecruft/satnogsmap" > SpaceCruft Fork< / A > .
2019-02-20 13:00:22 -07:00