瀏覽代碼

Clarify ID requirement for removing hot spots (fixes #1229).

pull/1238/head
Matthew Petroff 3 月之前
父節點
當前提交
bbf97c88dc
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      src/js/pannellum.js

+ 3
- 1
src/js/pannellum.js 查看文件

@@ -3221,7 +3221,9 @@ this.addHotSpot = function(hs, sceneId) {
};

/**
* Remove a hot spot.
* Remove a hot spot. To use this method, the user must create each hot spot
* with a unique ID within a given scene. Behavior for duplicate IDs is
* considered undefined, and hot spots created without an ID cannot be removed.
* @memberof Viewer
* @instance
* @param {string} hotSpotId - The ID of the hot spot


Loading…
取消
儲存