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*

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!