You are not logged in.

1

Monday, August 12th 2019, 9:02am

drag over polygonal hotspot

HI, I´m wondering if anybody had this question too and can help me... Is anyway to make a polygonal hostpot so you could drag over another hotspot, like droppable on javascript? I think this could be very useful.

I´ve tried to use conditionals on ath and atv position but this doesn´t work because these numbers changes along the area so I´m stucked with this.

I hope somebody can give me any clue.

Thanks!

2

Monday, August 12th 2019, 2:09pm

Hi,

you could set enabled=false for hotspot you 'drag' and use the onover/onout events of the polygonal hotspots...

Best regards,
Klaus

3

Monday, August 12th 2019, 4:16pm

Hi Klaus,
thanks for answering, I copy here a link where I´m trying to set this feature in case this can be useful to anybody:

http://skyearth.es/kitchen/


and the code: http://skyearth.es/kitchen/tour.xml

on the right in the fridge there are some elements to drag over the kitchen table, I want to use a polygonal hotspot (the white border around counter) to accept each one of these elements I´ll try working around events.

Thanks again.

4

Monday, August 12th 2019, 6:22pm

Hi Klaus,
I´m working on events but I not sure I understand it , I need each individual draggable hotspot do an action (like stopdrag) when dropped over the polygonal hotspot, is there any condition like this:

" if(hotspot[draggable_one]."is over" hotspot[polygonal_one].... "?


Thanks and sorry, I´m searching a lot by myself but I can´t find anything to get what I need.