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.

robertl

Beginner

  • "robertl" started this thread

Posts: 32

Location: Croatia

  • Send private message

1

Thursday, April 20th 2017, 9:19pm

Loadpano not cleaning old scene data

Hi!
I have an issue with using loadpano, well, a couple of them.
Firstly it doesn't clean old stuff, like thumbails, which contain thumbnails from the last xml, but the link don't work and throw and error.
The map plugin completely ignores the loading of new scenes.

I'm using loadpano like this:

Source code

1
krpano().call("loadpano(" + xmlname + ", null, MERGE, BLEND(0.5));");



I'm hoping that there is a way to do the cleaning while loading new xml automaticaly, before I go to the trouble of writing housekeeping stuff like this.

Please chime in!

spacerywirtualne

Professional

Posts: 911

Location: Poland, Europe

Occupation: krpano developer : virtual tours

  • Send private message

2

Friday, April 21st 2017, 10:37am

Hello
The map plugin completely ignores the loading of new scenes.
What exactly do you mean? Spot maps or move the map or what? What do you want to do with the map after loading a new panorama?

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

facebook page :: youtube

cms4vr team *thumbsup*

robertl

Beginner

  • "robertl" started this thread

Posts: 32

Location: Croatia

  • Send private message

3

Friday, April 21st 2017, 11:41am

Hello
The map plugin completely ignores the loading of new scenes.
What exactly do you mean? Spot maps or move the map or what? What do you want to do with the map after loading a new panorama?


The maps plugin automatically creates spots from scene data on the first load.
I expected the map to delete old map spots, create new ones and positions the map in the center of new spots.

spacerywirtualne

Professional

Posts: 911

Location: Poland, Europe

Occupation: krpano developer : virtual tours

  • Send private message

4

Friday, April 21st 2017, 6:14pm

The maps plugin automatically creates spots from scene data on the first load.
I expected the map to delete old map spots, create new ones and positions the map in the center of new spots.
You must do this manually I'm afraid. The map plugin is not that smart *w00t*

Use this manual:

https://krpano.com/plugins/googlemaps/#activatespot


You can use onnewscene event.

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

facebook page :: youtube

cms4vr team *thumbsup*

robertl

Beginner

  • "robertl" started this thread

Posts: 32

Location: Croatia

  • Send private message

5

Saturday, April 22nd 2017, 11:56am

The maps plugin automatically creates spots from scene data on the first load.
I expected the map to delete old map spots, create new ones and positions the map in the center of new spots.
You must do this manually I'm afraid. The map plugin is not that smart *w00t*

Use this manual:

https://krpano.com/plugins/googlemaps/#activatespot


You can use onnewscene event.

best regards
Piotr
Oh, I was hoping to avoid that. I could just use an iframe and call it a day *unsure*
Well I better get started on it.

It would be lovely if Klaus could just add those functions to Krpano.