﻿<krpano version="1.21" title="Virtual Tour">

	<include url="skin/vtourskin.xml" />

	<!-- customize skin settings: maps, gyro, webvr, thumbnails, tooltips, layout, design, ... -->
	<skin_settings maps="true"
	               maps_type="google"
	               maps_bing_api_key=""
	               maps_google_api_key=""
	               maps_zoombuttons="false"
	               maps_loadonfirstuse="true"
	               gyro="true"
	               gyro_keeplookingdirection="false"
	               webvr="true"
	               webvr_keeplookingdirection="true"
	               webvr_prev_next_hotspots="true"
	               autotour="false"
	               littleplanetintro="false"
	               followmousecontrol="false"
	               title="true"
	               thumbs="true"
	               thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160"
	               thumbs_opened="false"
	               thumbs_text="false"
	               thumbs_dragging="true"
	               thumbs_onhoverscrolling="false"
	               thumbs_scrollbuttons="false"
	               thumbs_scrollindicator="false"
	               thumbs_loop="false"
	               tooltips_buttons="false"
	               tooltips_thumbs="false"
	               tooltips_hotspots="false"
	               tooltips_mapspots="false"
	               deeplinking="false"
	               loadscene_flags="MERGE"
	               loadscene_blend="OPENBLEND(0.5, 0.0, 0.75, 0.05, linear)"
	               loadscene_blend_prev="SLIDEBLEND(0.5, 180, 0.75, linear)"
	               loadscene_blend_next="SLIDEBLEND(0.5,   0, 0.75, linear)"
	               loadingtext=""
	               layout_width="100%"
	               layout_maxwidth="814"
	               controlbar_width="-24"
	               controlbar_height="40"
	               controlbar_offset="20"
	               controlbar_offset_closed="-40"
	               controlbar_overlap.no-fractionalscaling="10"
	               controlbar_overlap.fractionalscaling="0"
	               design_skin_images="vtourskin.png"
	               design_bgcolor="0x2D3E50"
	               design_bgalpha="0.8"
	               design_bgborder="0"
	               design_bgroundedge="1"
	               design_bgshadow="0 4 10 0x000000 0.3"
	               design_thumbborder_bgborder="3 0xFFFFFF 1.0"
	               design_thumbborder_padding="2"
	               design_thumbborder_bgroundedge="0"
	               design_text_css="color:#FFFFFF; font-family:Arial;"
	               design_text_shadow="1"
	               />

	<!--
	    For an alternative skin design either change the <skin_settings> values 
	    from above or optionally include one of the predefined designs from below.
	-->
	<!-- <include url="skin/vtourskin_design_flat_light.xml"  /> -->
	<!-- <include url="skin/vtourskin_design_glass.xml"       /> -->
	<!-- <include url="skin/vtourskin_design_ultra_light.xml" /> -->
	<!-- <include url="skin/vtourskin_design_117.xml"         /> -->
	<!-- <include url="skin/vtourskin_design_117round.xml"    /> -->
	<!-- <include url="skin/vtourskin_design_black.xml"       /> -->
	

	
	<scene name="scene_b1" title="b1" onstart="" thumburl="panos/b1.tiles/thumb.jpg" lat="31.83693056" lng="117.20293333" alt="51.40" heading="0.0">
		
		<control bouncinglimits="calc:image.cube ? true : false" />

		<view hlookat="-78.501" vlookat="-4.658" fovtype="MFOV" fov="122.307" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

		<preview url="panos/b1.tiles/preview.jpg" />

		<image prealign="0|0.0|0">
			<cube url="panos/b1.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,768,1664" />
		</image>

		<hotspot name="spot1" url="static/imgs/arrow-top.png" scale="0.5" ath="11.333" atv="-0.981" linkedscene="scene_r1" linkedscene_lookat="18.27,0.8,120.0" onover.addevent="tween(scale,0.55);" onout.addevent="tween(scale,0.5);" onclick="skin_hotspotstyle_click();"/>

	</scene>

	<scene name="scene_b2" title="b2" onstart="" thumburl="panos/b2.tiles/thumb.jpg" lat="31.83701667" lng="117.20293889" alt="50.85" heading="0.0">
		
		<control bouncinglimits="calc:image.cube ? true : false" />

		<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

		<preview url="panos/b2.tiles/preview.jpg" />

		<image prealign="0|0.0|0">
			<cube url="panos/b2.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,768,1664" />
		</image>

	</scene>

	<scene name="scene_b3" title="b3" onstart="" thumburl="panos/b3.tiles/thumb.jpg" lat="31.83721667" lng="117.20294167" alt="44.47" heading="0.0">
		
		<control bouncinglimits="calc:image.cube ? true : false" />

		<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

		<preview url="panos/b3.tiles/preview.jpg" />

		<image prealign="0|0.0|0">
			<cube url="panos/b3.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,768,1664" />
		</image>

	</scene>

	<scene name="scene_r1" title="r1" onstart="" thumburl="panos/r1.tiles/thumb.jpg" lat="31.83708056" lng="117.20291944" alt="34.28" heading="0.0">
		
		<control bouncinglimits="calc:image.cube ? true : false" />

		<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

		<preview url="panos/r1.tiles/preview.jpg" />

		<image prealign="0|0.0|0">
			<cube url="panos/r1.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,768,1664" />
		</image>

		<include url="video-player.xml" />
		<hotspot name="spot1" 
			tooltip="热点视频"
			url="static/imgs/video.png" 
			zoom="true"
			scale="0.5"
			ath="51.865" 
			atv="-7.577" 
			onloaded.addevent="add_all_the_time_tooltip();"
			onclick="looktohotspot(get(name),90); videoplayer_open('%CURRENTXML%/demo.mp4', '%CURRENTXML%/poster.png', 0.5);"
		/>
		<hotspot name="spot2" style="skin_hotspotstyle" ath="-105.283" atv="20.841" linkedscene="scene_b2" linkedscene_hoffset="0.0" use3dtransition="true" />
		<hotspot name="spot3" style="skin_hotspotstyle" ath="83.904" atv="-14.638" linkedscene="scene_r2" linkedscene_lookat="0.0,0.0,120.0" />

		<!--添加热点文字-->
		<action name="add_all_the_time_tooltip">
			txtadd(tooltipname, 'tooltip_', get(name));
			addplugin(get(tooltipname)); txtadd(plugin[get(tooltipname)].parent, 'hotspot[',get(name),']');
			set(plugin[get(tooltipname)].url,'%SWFPATH%/plugins/textfield.swf');
			set(plugin[get(tooltipname)].align,top); set(plugin[get(tooltipname)].edge,bottom);
			set(plugin[get(tooltipname)].x,0); set(plugin[get(tooltipname)].y,0);
			set(plugin[get(tooltipname)].width,200); set(plugin[get(tooltipname)].autoheight,true);
			set(plugin[get(tooltipname)].background,false); set(plugin[get(tooltipname)].border,false);
			set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:16px;');
			set(plugin[get(tooltipname)].textshadow,1); set(plugin[get(tooltipname)].textshadowrange,6.0); set(plugin[get(tooltipname)].textshadowangle,90);
			copy(plugin[get(tooltipname)].html,hotspot[get(name)].tooltip);
			set(plugin[get(tooltipname)].enabled,false);
		</action>
		

	</scene>

	<scene name="scene_r2" title="r2" onstart="" thumburl="panos/r2.tiles/thumb.jpg" lat="31.83703611" lng="117.20286667" alt="46.07" heading="0.0">
		
		<control bouncinglimits="calc:image.cube ? true : false" />

		<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

		<preview url="panos/r2.tiles/preview.jpg" />

		<image prealign="0|0.0|0">
			<cube url="panos/r2.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,768,1664" />
		</image>

		<!-- <hotspot name="spot1" style="skin_hotspotstyle" ath="-18.816" atv="-7.613" linkedscene="scene_r1" linkedscene_hoffset="0.0" use3dtransition="true" /> -->
		<hotspot name="videospot"
	         url="%VIEWER%/plugins/videoplayer.js"
	         videourl="demo.mp4"
	         posterurl="poster.png"
	         distorted="true"
			 zoom="true"
			 width="860"
			 height="500"
	         ath="-1.550" 
			 atv="-5.007"
			 edge="center"
	         scalex="0.21"
			 scaley="0.2"
	         rx="0"
	         ry="0"
	         rz="0"
	         ox="0"
	         oy="0"
	         loop="false"
	         pausedonstart="true"
	         onclick="togglepause();"
	         />
			 <!-- <hotspot name="videospot"
	         url="%VIEWER%/plugins/videoplayer.js"
	         videourl="demo.mp4"
	         posterurl="poster.png"
	         distorted="true"
			 zoom="true"
	         ath="-1.550" 
			 atv="-5.507"
			 edge="center"
	         scale="0.2"
	         loop="false"
	         pausedonstart="true"
	         onclick="togglepause();"
	         /> -->
		

	</scene>

	<scene name="scene_r3" title="r3" onstart="" thumburl="panos/r3.tiles/thumb.jpg" lat="31.83710556" lng="117.20283889" alt="45.30" heading="0.0">
		
		<control bouncinglimits="calc:image.cube ? true : false" />

		<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

		<preview url="panos/r3.tiles/preview.jpg" />

		<image prealign="0|0.0|0">
			<cube url="panos/r3.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,768,1664" />
		</image>

	</scene>


</krpano>
