Skip to content

Commit

Permalink
feat(view): add isGlobeView and isPlanarView booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
zarov committed Oct 4, 2019
1 parent 9158e44 commit ea54aa2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Core/Prefab/GlobeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class GlobeView extends View {
THREE.Object3D.DefaultUp.set(0, 0, 1);
// Setup View
super('EPSG:4978', viewerDiv, options);
this.isGlobeView = true;

// Configure camera
let positionCamera;
Expand Down
1 change: 1 addition & 0 deletions src/Core/Prefab/PlanarView.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class PlanarView extends View {

// Setup View
super(extent.crs, viewerDiv, options);
this.isPlanarView = true;

// Configure camera
const dim = extent.dimensions();
Expand Down

0 comments on commit ea54aa2

Please sign in to comment.