Browse Source

Add API method to check if a panorama is loaded.

pull/338/head
Matthew Petroff 8 years ago
parent
commit
685e89b2e4
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      src/js/pannellum.js

+ 10
- 0
src/js/pannellum.js View File

@@ -2136,6 +2136,16 @@ function escapeHTML(s) {
}

/**
* Checks whether or not a panorama is loaded.
* @memberof Viewer
* @instance
* @returns {boolean} `true` if a panorama is loaded, else `false`
*/
this.isLoaded = function() {
return loaded;
};

/**
* Returns the pitch of the center of the view.
* @memberof Viewer
* @instance


Loading…
Cancel
Save