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.

Fernando

Intermediate

  • "Fernando" started this thread

Posts: 330

Location: Habana, Cuba

Occupation: Architect, Photographer.

  • Send private message

1

Thursday, January 5th 2023, 11:57pm

scrolltolayer for scrollarea plugin

I new feature for scrollarea plugin. Very usefull to center the map in specific children layer position (similar in hotspot looktohotspot), for example in the same krpano example "demotour-confu" It would be interesting if the panorama icon was centered when opening the map.

<events onnewscene="scrolltolayer(xml.scene);"
/>

Where the icon name is the same to scene name.

By the way if any people coded similar feature using "setcenter(x,y)" or "scrolltocenter(x,y)" please share the code. Remember that in this example the coordinates are in percent format, not pixel. I have tried without sucess. I have not seen anything similar in this forum. *confused*