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.

Kabkee

Trainee

  • "Kabkee" started this thread

Posts: 82

Location: South Korea

Occupation: South Korea

  • Send private message

1

Tuesday, February 14th 2017, 7:31am

How To access <Radar> inside Google Map Plugin

I want dynamically show and hide Google Map Radar like radar plugin itself.

However, there's no method in the google map plugin, according to https://krpano.com/plugins/googlemaps/#syntax

How can I access <radar> element inside Google Map plugin??

Kabkee

Trainee

  • "Kabkee" started this thread

Posts: 82

Location: South Korea

Occupation: South Korea

  • Send private message

2

Tuesday, February 14th 2017, 8:05am

[self] Reply

I got this solution.

get(plugin[map].radar[0].visible);


if you name the radar inside Google Map plugin, you may access like this

get(plugin[map].radar[myRadarName].visible);


Also set() action is run for me like

set(plugin[map].radar[myRadarName].visible, false);

set(plugin[map].radar[myRadarName].visible, true);





spacerywirtualne

Professional

Posts: 937

Location: Poland, Europe

Occupation: krpano developer : virtual tours

  • Send private message

3

Tuesday, February 14th 2017, 9:28am

Hi

I'm doing it this way:

Source code

1
set(plugin[map].radar.visible, true);


Piotr
Your own online, cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube

cms4vr team *thumbsup*

Kabkee

Trainee

  • "Kabkee" started this thread

Posts: 82

Location: South Korea

Occupation: South Korea

  • Send private message

4

Sunday, April 2nd 2017, 6:23am

set(plugin[map].radar.visible, true);

I think the code doesn't work anyway.
Because radar object is like array you should pick up a specific one like.

Source code

1
   set(plugin[map].radar[0].visible, true);


instead of

Source code

1
   set(plugin[map].radar.visible, true);

5

Friday, April 7th 2017, 11:16pm

Hi,

the google- and bing-maps plugins have only one radar subnode - see here:
https://krpano.com/plugins/googlemaps/#radar

That's the correct way to access the setting:

Source code

1
set(plugin[map].radar.visible, true);	


Best regards,
Klaus

Similar threads