Browse Source

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

pull/1238/head
Matthew Petroff 3 months ago
parent
commit
bbf97c88dc
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/js/pannellum.js

+ 3
- 1
src/js/pannellum.js View File

@@ -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…
Cancel
Save