tour.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <krpano version="1.20.9" title="Virtual Tour">
  2. <include url="skin/vtourskin.xml" />
  3. <!-- customize skin settings: maps, gyro, webvr, thumbnails, tooltips, layout, design, ... -->
  4. <skin_settings maps="false"
  5. maps_type="google"
  6. maps_bing_api_key=""
  7. maps_google_api_key=""
  8. maps_zoombuttons="false"
  9. maps_loadonfirstuse="true"
  10. gyro="true"
  11. gyro_keeplookingdirection="false"
  12. webvr="true"
  13. webvr_keeplookingdirection="true"
  14. webvr_prev_next_hotspots="true"
  15. autotour="false"
  16. littleplanetintro="false"
  17. followmousecontrol="false"
  18. title="true"
  19. thumbs="true"
  20. thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160"
  21. thumbs_opened="false"
  22. thumbs_text="false"
  23. thumbs_dragging="true"
  24. thumbs_onhoverscrolling="false"
  25. thumbs_scrollbuttons="false"
  26. thumbs_scrollindicator="false"
  27. thumbs_loop="false"
  28. tooltips_buttons="false"
  29. tooltips_thumbs="false"
  30. tooltips_hotspots="false"
  31. tooltips_mapspots="false"
  32. deeplinking="false"
  33. loadscene_flags="MERGE"
  34. loadscene_blend="OPENBLEND(0.5, 0.0, 0.75, 0.05, linear)"
  35. loadscene_blend_prev="SLIDEBLEND(0.5, 180, 0.75, linear)"
  36. loadscene_blend_next="SLIDEBLEND(0.5, 0, 0.75, linear)"
  37. loadingtext=""
  38. layout_width="100%"
  39. layout_maxwidth="814"
  40. controlbar_width="-24"
  41. controlbar_height="40"
  42. controlbar_offset="20"
  43. controlbar_offset_closed="-40"
  44. controlbar_overlap.no-fractionalscaling="10"
  45. controlbar_overlap.fractionalscaling="0"
  46. design_skin_images="vtourskin.png"
  47. design_bgcolor="0x2D3E50"
  48. design_bgalpha="0.8"
  49. design_bgborder="0"
  50. design_bgroundedge="1"
  51. design_bgshadow="0 4 10 0x000000 0.3"
  52. design_thumbborder_bgborder="3 0xFFFFFF 1.0"
  53. design_thumbborder_padding="2"
  54. design_thumbborder_bgroundedge="0"
  55. design_text_css="color:#FFFFFF; font-family:Arial;"
  56. design_text_shadow="1"
  57. />
  58. <!--
  59. For an alternative skin design either change the <skin_settings> values
  60. from above or optionally include one of the predefined designs from below.
  61. -->
  62. <!-- <include url="skin/vtourskin_design_flat_light.xml" /> -->
  63. <!-- <include url="skin/vtourskin_design_glass.xml" /> -->
  64. <!-- <include url="skin/vtourskin_design_ultra_light.xml" /> -->
  65. <!-- <include url="skin/vtourskin_design_117.xml" /> -->
  66. <!-- <include url="skin/vtourskin_design_117round.xml" /> -->
  67. <!-- <include url="skin/vtourskin_design_black.xml" /> -->
  68. <!-- startup action - load the first scene -->
  69. <action name="startup" autorun="onstart">
  70. if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); );
  71. loadscene(get(startscene), null, MERGE);
  72. if(startactions !== null, startactions() );
  73. </action>
  74. <events onxmlcomplete="showlog(); trace('EVENTS example');" onnewpano="trace('new pano image, fov=',image.hfov,'x',image.vfov);"
  75. onremovepano="trace('the pano will be removed...');" onpreviewcomplete="trace('preview image loaded');"
  76. onloadcomplete="trace('pano image loaded');" onloaderror="trace('loading error - ', lasterror);"
  77. onclick="trace('mouse clicked at ', mouse.x, '/', mouse.y);" onmousedown="trace('mouse button down at ', mouse.x, '/', mouse.y);"
  78. onmouseup="trace('mouse button up at ', mouse.x, '/', mouse.y);" onmousewheel="trace('mouse wheel rolled - delta=', wheeldelta);"
  79. onkeydown="trace('key down - keycode=', keycode);" onkeyup="trace('key up - keycode=', keycode);"
  80. onresize="trace('window resize - window size=', stagewidth, 'x', stageheight,' - area size=', area.pixelwidth, 'x', area.pixelheight);"
  81. onenterfullscreen="trace('enter fullscreen mode');" onexitfullscreen="trace('exit fullscreen mode');"
  82. onidle="trace('idle event - no user interaction since ', idletime, ' seconds');"
  83. onviewchange="showtext('onviewchange event', onviewchange_textstyle);"/>
  84. <scene name="scene_chengshicitang" title="chengshicitang" onstart="" thumburl="tourpanos/chengshicitang.tiles/thumb.jpg" lat="" lng="" heading="">
  85. <control bouncinglimits="calc:image.cube ? true : false" />
  86. <view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
  87. <preview url="tourpanos/chengshicitang.tiles/preview.jpg" />
  88. <image>
  89. <cube url="tourpanos/chengshicitang.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,1024,1792,3584,7168" />
  90. </image>
  91. <hotspot name="spot1" style="skin_hotspotstyle" ath="2.119" atv="26.551" linkedscene="scene_chenyiju" />
  92. <hotspot name="spot2" style="skin_hotspotstyle" ath="-79.408" atv="16.105" linkedscene="scene_chenyiju" />
  93. </scene>
  94. <scene name="scene_chenyiju" title="chenyiju" onstart="" thumburl="tourpanos/chenyiju.tiles/thumb.jpg" lat="" lng="" heading="">
  95. <control bouncinglimits="calc:image.cube ? true : false" />
  96. <view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
  97. <preview url="tourpanos/chenyiju.tiles/preview.jpg" />
  98. <image>
  99. <cube url="tourpanos/chenyiju.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,1024,1792,3584,7168" />
  100. </image>
  101. </scene>
  102. </krpano>