瀏覽代碼

Add API method to check if a panorama is loaded.

pull/338/head
Matthew Petroff 8 年之前
父節點
當前提交
685e89b2e4
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. +10
    -0
      src/js/pannellum.js

+ 10
- 0
src/js/pannellum.js 查看文件

@@ -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…
取消
儲存