Constructor
new Hotspot(domElement, view, coords, opts)
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
domElement |
Element | The DOM element. |
|||||||||||||||||||||
view |
View | The view. |
|||||||||||||||||||||
coords |
Object | The hotspot coordinates. Use RectilinearViewCoords for a RectilinearView or FlatViewCoords for a FlatView. |
|||||||||||||||||||||
opts |
Object | Additional options. Properties
|
Methods
destroy()
Destructor. Clients should call HotspotContainer#destroyHotspot instead.
domElement() → {Element}
Returns:
- Type
- Element
hide()
Hide the hotspot
perspective() → {Object}
Returns:
- Type
- Object
position() → {Object}
Returns:
- Type
- Object
setPerspective(perspective)
Parameters:
Name | Type | Description |
---|---|---|
perspective |
Object |
setPosition(coords)
Parameters:
Name | Type | Description |
---|---|---|
coords |
Object |
show()
Show the hotspot