Skip to content

Commit

Permalink
-added set/get function to set the locking of the compass and navigat…
Browse files Browse the repository at this point in the history
…ion controls.
  • Loading branch information
Alberto Acevedo committed Jan 17, 2017
1 parent 9a45737 commit b6ff8f2
Show file tree
Hide file tree
Showing 3 changed files with 283 additions and 182 deletions.
13 changes: 13 additions & 0 deletions Source/CesiumNavigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,19 @@ define([
CesiumNavigation.prototype.terria = undefined;
CesiumNavigation.prototype.container = undefined;
CesiumNavigation.prototype._onDestroyListeners = undefined;
CesiumNavigation.prototype._navigationLocked = false;

CesiumNavigation.prototype.setNavigationLocked = function ( locked)
{
this._navigationLocked = locked;
this.navigationViewModel.setNavigationLocked( this._navigationLocked );

};

CesiumNavigation.prototype.getNavigationLocked = function ()
{
return this._navigationLocked ;
};

CesiumNavigation.prototype.destroy = function ()
{
Expand Down
Loading

0 comments on commit b6ff8f2

Please sign in to comment.