Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
tour.xml 2.64 KB
Copy Edit Raw Blame History
虫鱼水兽 authored 2016-04-20 10:58 . 123124
<krpano version="1.18" title="Virtual Tour" onstart="startup();">
<!-- set skin settings: bingmaps? gyro? thumbnails? tooltips? -->
<skin_settings maps="false"
maps_type="bing"
maps_bing_api_key=""
maps_zoombuttons="false"
gyro="true"
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_thumbs="false"
tooltips_hotspots="false"
tooltips_mapspots="false"
loadscene_flags="MERGE"
loadscene_blend="BLEND(0.5)"
controlbar_offset="20"
/>
<!-- set optional skin logo url -->
<layer name="skin_logo" url="" scale="0.25" opened_onclick="openurl('...',_blank);" />
<action name="startup">
if(startscene === null, copy(startscene,scene[0].name));
loadscene(get(startscene), null, MERGE);
</action>
<scene name="scene_anti" title="anti" onstart="" thumburl="panos/anti.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="10" vlookat="10" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/anti.tiles/preview.jpg" />
<image type="CUBE" multires="true" tilesize="512" progressive="false">
<level tiledimagewidth="764" tiledimageheight="764">
<cube url="panos/anti.tiles/%s/l1/%v/l1_%s_%v_%h.jpg" />
</level>
<mobile>
<cube url="panos/anti.tiles/mobile_%s.jpg" />
</mobile>
</image>
<!-- place your scene hotspots here -->
<include url="hotpot/hotpot.xml" />
</scene>
<events onclick="restoreImg"
onviewchange ="onviewchange"/>
<action name="restoreImg">
set(layer[circle].url,"images/bg2-4.png");
</action>
<action name="onviewchange">
for(set(i,0),i LT hotspot.count,inc(i),viewchanged());
</action>
<action name="viewchanged">
getlooktodistance(result,get(hotspot[get(i)].ath),get(hotspot[get(i)].atv),get(view.hlookat),get(view.vlookat));
if(result LT 15,red(i);break;,white());
</action>
<action name="red">
set(%1,31);
set(layer[circle].url,"images/bg2-6.png");
js(onAim());
</action>
<action name="white">
set(layer[circle].url,"images/bg2-4.png");
js(outAim());
</action>
<action name="test" type="Javascript"><![CDATA[
console.log("asd")
]]></action>
</krpano>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化