Sie sind nicht angemeldet.

1

Sonntag, 9. Mai 2021, 19:07

How can we add search engine for pano and hotspot?

Dear All,

Please help i am working on project with large set of panorama and hotspot 1000+

please suggest how we can add search box for panoram and hotspot?

i checked Fuzzysearch but i think that only work for scene , please help . *sad* *sad* *sad* *sad*

Regards

light_line

Fortgeschrittener

Beiträge: 169

Beruf: krpano freelancer || creating ideas & coding them || krpano developer

  • Nachricht senden

2

Montag, 10. Mai 2021, 02:51

Hi,

as I know, there is no way to get the list of hotspots on other scenes.
that`s why the Fuzzy Search plugin doesn`t support searching on the hotspots.
but you can use the addItem action on the Fuzzy Search plugin to add the hotspots to the search engine manually.
maybe a code like this can helps you to automate "creating the hotspot`s list": (you can run it in the browser`s developer console)

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
var krpano = document.getElementById("krpanoSWFObject");
var time = 3000;
var hotspot_print = "";
scenes_list = krpano.get("scene").getArray();
scenes_list.forEach(function (key) {
	setTimeout( function(){
		console.log(key.name);
		krpano.call("loadscene(" + key.name + ",null,MERGE,BLEND(1))");
		setTimeout( function(){
			hotspots_list = krpano.get("hotspot").getArray();
			hotspots_list.forEach(function (key2) {
				//console.log(key.name + " | " + key2.ath + " | " + key2.atv + " | " + key2.linkedscene + " | " + key2.url);
				hotspot_print += "plugin[fuzzysearch].addItem('" + key2.tooltip + "','loadscene(" + key.name + ",null,MERGE,BLEND(1));lookat(" + key2.ath + "," + key2.atv + ");','" + key.title + "');\n\r";
			});
			console.log(hotspot_print);
		}, 2500);
	}, time);
	time += 3000;
});
console.log(hotspot_print);


Thanks,
Hamid

3

Montag, 10. Mai 2021, 22:03

Hi,

as I know, there is no way to get the list of hotspots on other scenes.
that`s why the Fuzzy Search plugin doesn`t support searching on the hotspots.
but you can use the addItem action on the Fuzzy Search plugin to add the hotspots to the search engine manually.
maybe a code like this can helps you to automate "creating the hotspot`s list": (you can run it in the browser`s developer console)

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
var krpano = document.getElementById("krpanoSWFObject");
var time = 3000;
var hotspot_print = "";
scenes_list = krpano.get("scene").getArray();
scenes_list.forEach(function (key) {
	setTimeout( function(){
		console.log(key.name);
		krpano.call("loadscene(" + key.name + ",null,MERGE,BLEND(1))");
		setTimeout( function(){
			hotspots_list = krpano.get("hotspot").getArray();
			hotspots_list.forEach(function (key2) {
				//console.log(key.name + " | " + key2.ath + " | " + key2.atv + " | " + key2.linkedscene + " | " + key2.url);
				hotspot_print += "plugin[fuzzysearch].addItem('" + key2.tooltip + "','loadscene(" + key.name + ",null,MERGE,BLEND(1));lookat(" + key2.ath + "," + key2.atv + ");','" + key.title + "');\n\r";
			});
			console.log(hotspot_print);
		}, 2500);
	}, time);
	time += 3000;
});
console.log(hotspot_print);


Thanks,
Hamid
Hello Hamid,

You always Rock, i have very little knowledge for pogramming. i tried reached somewhere.

additem is working fine , but above code is not working can you help more.

Two more questions

1. Search result got shifted right, when output of panotour project map open from left. In panotour google map open through bootstrap.

2. Streetview pegman and zoom in and out icon also disapper when we add fuzzysearch.

Please help in this also.


Best Regards
Sakshi

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »sakshi« (10. Mai 2021, 23:43)


light_line

Fortgeschrittener

Beiträge: 169

Beruf: krpano freelancer || creating ideas & coding them || krpano developer

  • Nachricht senden

4

Dienstag, 11. Mai 2021, 01:46

Hi Sakshi,

Do you use the plugin in the PTP?
Can you please send the tour Link in PM? I need to check the problem online

Thanks,
Hamid

5

Mittwoch, 12. Mai 2021, 19:42

Hi Sakshi,

Do you use the plugin in the PTP?
Can you please send the tour Link in PM? I need to check the problem online

Thanks,
Hamid
Nope i saw in some sample.

Show by freelancer . I send you sample link.


Regards
Sakshi

6

Montag, 17. Mai 2021, 22:54


Hello Hamid,

please check below link

https://www.opsaop.com/360/?startscene=casa1-fachada

when i take this link to landscape fullscreen search result disappper please help



Regards
Hi,

as I know, there is no way to get the list of hotspots on other scenes.
that`s why the Fuzzy Search plugin doesn`t support searching on the hotspots.
but you can use the addItem action on the Fuzzy Search plugin to add the hotspots to the search engine manually.
maybe a code like this can helps you to automate "creating the hotspot`s list": (you can run it in the browser`s developer console)

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
var krpano = document.getElementById("krpanoSWFObject");
var time = 3000;
var hotspot_print = "";
scenes_list = krpano.get("scene").getArray();
scenes_list.forEach(function (key) {
	setTimeout( function(){
		console.log(key.name);
		krpano.call("loadscene(" + key.name + ",null,MERGE,BLEND(1))");
		setTimeout( function(){
			hotspots_list = krpano.get("hotspot").getArray();
			hotspots_list.forEach(function (key2) {
				//console.log(key.name + " | " + key2.ath + " | " + key2.atv + " | " + key2.linkedscene + " | " + key2.url);
				hotspot_print += "plugin[fuzzysearch].addItem('" + key2.tooltip + "','loadscene(" + key.name + ",null,MERGE,BLEND(1));lookat(" + key2.ath + "," + key2.atv + ");','" + key.title + "');\n\r";
			});
			console.log(hotspot_print);
		}, 2500);
	}, time);
	time += 3000;
});
console.log(hotspot_print);


Thanks,
Hamid

7

Sonntag, 30. Mai 2021, 08:22

Tried but not working

Hello Hmaid i tried scrpit, but that not working

Hello Hamid,

please check below link

https://www.opsaop.com/360/?startscene=casa1-fachada

when i take this link to landscape fullscreen search result disappper please help



Regards
Hi,

as I know, there is no way to get the list of hotspots on other scenes.
that`s why the Fuzzy Search plugin doesn`t support searching on the hotspots.
but you can use the addItem action on the Fuzzy Search plugin to add the hotspots to the search engine manually.
maybe a code like this can helps you to automate "creating the hotspot`s list": (you can run it in the browser`s developer console)

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
var krpano = document.getElementById("krpanoSWFObject");
var time = 3000;
var hotspot_print = "";
scenes_list = krpano.get("scene").getArray();
scenes_list.forEach(function (key) {
	setTimeout( function(){
		console.log(key.name);
		krpano.call("loadscene(" + key.name + ",null,MERGE,BLEND(1))");
		setTimeout( function(){
			hotspots_list = krpano.get("hotspot").getArray();
			hotspots_list.forEach(function (key2) {
				//console.log(key.name + " | " + key2.ath + " | " + key2.atv + " | " + key2.linkedscene + " | " + key2.url);
				hotspot_print += "plugin[fuzzysearch].addItem('" + key2.tooltip + "','loadscene(" + key.name + ",null,MERGE,BLEND(1));lookat(" + key2.ath + "," + key2.atv + ");','" + key.title + "');\n\r";
			});
			console.log(hotspot_print);
		}, 2500);
	}, time);
	time += 3000;
});
console.log(hotspot_print);


Thanks,
Hamid