Hide Radar on Specific Scenes/Groups  

Share your tips and tricks here or get help with any Panotour 2.0+ problem!
No bug reports (of any kind) in this forum!
no avatar
LSM1604
New member
 
Topic author
Posts: 5
Likes: 0 post
Liked in: 0 post
Joined: Wed Mar 09, 2016 2:53 pm
Info

Hide Radar on Specific Scenes/Groups

by LSM1604 » Fri Sep 07, 2018 2:31 pm

Hi,

I have a compass and a floorplan on my tour. The floorplan has a radar.

I have managed to hide the compass on specific panogroups by editing the xml of the Compass plugin.

Although the compass is gone from these panogroups, obviously the radar is still showing on the floorplan. Does anyone know how I can hide the radar for particular scenes or groups?

I have tried the following but none of them work:

  1. CAOTE - Starting a Scene - Call a JavaScript Function -
    Code: Select all
    js(invokePluginFunction(floorplan, hideRadar))
  2. CAOTE - Starting a Scene - Call a JavaScript Function -
    Code: Select all
    invokePluginFunction(floorplan, hideRadar))
  3. CAOTE - Starting a Scene - Call a JavaScript Function -
    Code: Select all
    jsinvokePluginFunction(floorplan, hideRadar()))
  4. CAOTE - Starting a Scene - Call a JavaScript Function -
    Code: Select all
    invokePluginFunction(floorplan, hideRadar()))
  5. CAOTE - Starting a Scene - Call custom (Krpano) code -
    Code: Select all
    hideRadar();
  6. CAOTE - Starting a Scene - Call custom (Krpano) code -
    Code: Select all
    floorplan, hideRadar();
  7. CAOTE - Starting a Scene - Call custom (Krpano) code -
    Code: Select all
    (floorplan, hideRadar());
  8. CAOTE - Starting a Scene - Call custom (Krpano) code -
    Code: Select all
    hideRadar;
  9. CAOTE - Starting a Scene - Call custom (Krpano) code -
    Code: Select all
    floorplan, hideRadar;
  10. CAOTE - Starting a Scene - Call custom (Krpano) code -
    Code: Select all
    (floorplan, hideRadar);

Any help is welcome.

Thanks,
Liam

no avatar
benji33
Kolor Team
 
Posts: 5848
Likes: 92 posts
Liked in: 199 posts
Joined: Tue Apr 09, 2013 10:59 am
Location: France
Info

Re: Hide Radar on Specific Scenes/Groups

by benji33 » Fri Sep 14, 2018 8:32 am

Hide radar do that in Javascript if it helps:
Code: Select all
jQuery('.floorplanSpotRadar').css('display', 'none');


So js(invokePluginFunction(floorplan, hideRadar)); should work if plugin name is "floorplan".
Benjamin

no avatar
benji33
Kolor Team
 
Posts: 5848
Likes: 92 posts
Liked in: 199 posts
Joined: Tue Apr 09, 2013 10:59 am
Location: France
Info

Re: Hide Radar on Specific Scenes/Groups

by benji33 » Fri Sep 14, 2018 9:28 am

If you are able to manage HTML5 and JS files.
Click on Edit > Open templates system directory
Here go to the tools directory the to the KolorHTML5Plugins directory.
You'll have access to the KolorFloorplan.js engine with the code for radars ;)
Benjamin


Who is online

Users browsing this forum: No registered users and 4 guests