Skip to content

Commit

Permalink
feat(globeView): allow to configure globeControls when creating a glo…
Browse files Browse the repository at this point in the history
…beView
  • Loading branch information
jailln authored and mgermerie committed Sep 13, 2022
1 parent 5c2f578 commit 821e522
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Core/Prefab/GlobeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class GlobeView extends View {
* in the DOM.
* @param {CameraTransformOptions|Extent} placement - An object to place view
* @param {object=} options - See options of {@link View}.
* @param {Object} options.controls - See options of {@link GlobeControls}
*/
constructor(viewerDiv, placement = {}, options = {}) {
THREE.Object3D.DefaultUp.set(0, 0, 1);
Expand Down Expand Up @@ -122,7 +123,7 @@ class GlobeView extends View {
if (options.noControls) {
CameraUtils.transformCameraToLookAtTarget(this, this.camera.camera3D, placement);
} else {
this.controls = new GlobeControls(this, placement);
this.controls = new GlobeControls(this, placement, options.controls);
this.controls.handleCollision = typeof (options.handleCollision) !== 'undefined' ? options.handleCollision : true;
}

Expand Down

0 comments on commit 821e522

Please sign in to comment.