Hi,
I am writing a tool to draw on a krpano viewer. Part of this is dynamically creating polygonal hotspots, much like the example given in the "addhotspot" documentation.
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
|
addhotspot(polyspot);
set(hotspot[polyspot].fillalpha, 0.25);
set(hotspot[polyspot].borderalpha, 0.50);
set(hotspot[polyspot].onclick, removehotspot(polyspot) );
set(hotspot[polyspot].point[0].ath,-10);
set(hotspot[polyspot].point[0].atv,-10);
set(hotspot[polyspot].point[1].ath,-10);
set(hotspot[polyspot].point[1].atv,+10);
set(hotspot[polyspot].point[2].ath,+10);
set(hotspot[polyspot].point[2].atv,+10);
set(hotspot[polyspot].point[3].ath,+10);
set(hotspot[polyspot].point[3].atv,-10);
|
The problem is that I cannot delete any of these points — how do I delete a single point? Is this even possible?
EDIT: things I have tried (that do not work):
|
Source code
|
1
2
3
|
removehotspot(hotspot[polyspot].point[3])
delete(hotspot[polyspot].point[3])
delete(hotspot[polyspot].point['n3']
|