You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, March 7th 2012, 4:52pm

Polygonal hotspots with holes

Hello,
I'm using krpano to create an interactive map with couple of selectable areas. I've created those areas by drawing polygonal hotspots. Everything was good for the time I've realized that some of areas have holes in them. Is there any way to cut out some portion of polygonal hotspot? Maybe some sort of substraction of two hotspots?

2

Wednesday, March 7th 2012, 5:58pm

Hi,

making holes is not possible, but it would be possible to make several polygon hotspots and 'link' them together by modifying the hovering variable of the other hotspot,
e.g.

Source code

1
2
<hotspot name="part1" ... onover="set(hotspot[part2].hovering,true);" onout="set(hotspot[part2].hovering,false);" onclick="..."> ... </hotspot>
<hotspot name="part2" ... onover="set(hotspot[part1].hovering,true);" onout="set(hotspot[part1].hovering,false);" onclick="hotspot[part1].onclick()"> ... </hotspot>


best regards,
Klaus

3

Thursday, March 8th 2012, 3:03pm

Thanks for reply, Klaus. Of course hovering is not the answer to my problem but luckily I've found a workaround. The simplest solutions are the best so I just drew one polygon - first outer line then inner line ensuring that points of transitions are overlapping each others. Work like a charm.