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.

  • "YASUSHI KUMON" started this thread

Posts: 92

Location: kanagawa,japan

Occupation: photographer

  • Send private message

1

Saturday, December 18th 2021, 4:18am

How to speed up the display of a large number of polygonal hotspots

Hi all,I am making a hazard map using aerial panorama.

Displays the area indicating the alert area as a polygonal hotspot.


The code that describes the points of the polygonal hotspot exceeds 50,000 lines and takes a long time to display. Encrypting the xml or removing the blanks didn't speed things up.


sample pano

https://chiiden.com/panorama/2021/grid_poly/
poligonal hotspot xml download

https://chiiden.com/panorama/2021/scene_VR20_poly.zip

In addition, the sample presented here summarizes the hotspots in the caution area into one, but the actual display has about 20 layers, and you can switch between showing and hiding each.


If you know any good way, can you give me some advice?

Thank you!
Yasushi Kumon

2

Saturday, December 18th 2021, 8:02pm

Hi,

in version 1.21 it will be possible to define the points for polygonal hotspots also this way:

Source code

1
<hotspot ... points="h,v,h,v,h,v,..." />
and that will be much faster.

I have tested your example with a transformed xml (attached) and the load/parse time went from ~3800ms to ~300ms on my test-system.

Best regards,
Klaus

  • "YASUSHI KUMON" started this thread

Posts: 92

Location: kanagawa,japan

Occupation: photographer

  • Send private message

3

Monday, December 20th 2021, 2:38am

Hi klaus,
Thank you for your nice advice.I will try.
thank you!

Yasushi Kumon

  • "YASUSHI KUMON" started this thread

Posts: 92

Location: kanagawa,japan

Occupation: photographer

  • Send private message

4

Monday, December 20th 2021, 4:25am

Hi klaus,
By the way, when will v1.21 be released?
looking forward to it.

Thank you.

Yasushi Kumon