Skip to content

Commit

Permalink
Linked up export button and fixed stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Cdkushni committed Sep 16, 2018
1 parent 610f592 commit a056bc1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/3js_resources/globeScene.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ export default class globeScene {
setEvents(this.camera, [this.earthMesh], 'mousemove', 10);
setEvents(this.camera, [this.earthMesh], 'click', 10);

document.getElementById("exportBtn").addEventListener("click", function() {
exportSceneGLB();
document.getElementById("exportButton").addEventListener("click", () => {
this.exportSceneGLB();
})
/*
var loader = new THREE.JSONLoader();
Expand All @@ -120,11 +120,11 @@ export default class globeScene {
setInterval(() => satData.on('value', snapshot => {
this.serverSatHandle(snapshot, this.scene, this.satelliteRefs);
}), 10000);

/*
var planeData = firebase.database().ref('planes');
setInterval(() => planeData.on('value', snapshot => {
planeHandle(snapshot, scene, this.planeRefs);
}), 20000);
}), 20000);*/
});
}

Expand Down Expand Up @@ -158,7 +158,6 @@ export default class globeScene {

onGlobeClick(event, baseGlobe) {
// Get pointc, convert to latitude/longitude
this.exportSceneGLB();
const latlng = this.getEventCenter(baseGlobe, event, 456);

// Look for country at that latitude/longitude
Expand Down

0 comments on commit a056bc1

Please sign in to comment.