Hi,
I want to create a map with a flat panorama.
Here is the prototype.
I've set a flat panorama with the following code:
Code
<layer name="map" type="krpano" width="300" height="300"
align="righttop" x="10" y="10" keep="true"
onloaded="krpano.actions.loadpano('j_map/map.xml');" alpha="1"
renderer="webgl" capture="true" enabled="true" zorder="5"/>
Code
<krpano bgcolor="0x555555">
<!-- the skin and the flat pano viewing and controlling setup -->
<include url="%VIEWER%/skin/flatpano_setup.xml" />
<include url="%VIEWER%/skin/defaultskin-OR.xml" />
<!-- preview pano image -->
<preview url="j_map.tiles/preview.jpg" />
<!-- pano image -->
<image hfov="1.00" vfov="1.000000" voffset="0.00">
<flat url="j_map.tiles/l%l/%v/l%l_%v_%h.jpg" multires="512,256x256,512x512,768x768,1536x1536,3072x3072" />
</image>
<hotspot name="spot1" url="%VIEWER%/j_map/03.png" ath="0" atv="0" scale="0.4" linkedscene="scene_VR2"
onclick=" lookto(get(ath),get(atv),0.3,tween(default,1.0));
krpano.actions.loadscene(scene_VR2,null,'MERGE','BLEND(0.5)');"/>
<hotspot name="spot2" url="%VIEWER%/j_map/03.png" ath="0" atv="0.2" scale="0.4"
onclick="lookto(get(ath),get(atv),0.3,tween(default,1.0));
krpano.actions.loadscene(scene_VR3,null,'MERGE','BLEND(0.5)');"/>
</krpano>
Display More
Problem 1 The scene doesn't change when I click on a spot.
Problem 2 I can't specify the radar's parent as a spot.
Problem 3 bgcolor="0x555555" is not reflected.
Is there a good way to solve this?
thank you.