Halli Hallo,
ich habe da ein kleines Problem. Wenn ich ein Panorama mittels krpano (neueste Version) lade, wird es etwas vergrößert dargestellt. Ich muß es dann mittels der eingebetteten "Zoom out" Taste verkleinern, damit es komplett sichtbar ist. Weiß jemand, wie ich das in der xml-Datei ändern oder ergänzen muß, damit das Panorama sofort komplett dargestellt wird? Habe schon mit dem "Fov" Parameter rumgespielt. Aber das half auch nichts. Hier die entsprechenden Quellcodes:
pan.php
PHP
<?php
$link="../Panorama.jpg";
?>
<object classid="CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000" width="420" height="240" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=9,0,28,0">
<param name="movie" value="krpano.swf?pano=pan.xml&sphere=<?php echo $link;?>">
<param name="bgcolor" value="#000000">
<embed src="krpano.swf?pano=pan.xml&sphere=<?php echo $link;?>" bgcolor="#000000" width="420" height="240" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">
</embed>
</object>
pan.xml
Code
<krpano>
<image vfov="100.00">
</image>
<include url="buttons.xml"/>
<progress showwait="" showload="bar(lefttop,100,10,10,100,solid,0x000000,0x006400)" />
<view fisheye="0" limitview="auto" maxpixelzoom="3"/>
</krpano>
buttons.xml
XML
<?xml version="1.0" encoding="utf-8"?>
<plugin name="left" url="img/links.png" autopos="bottom,-200,0" ondown="set(movevectorx,-1);" onup="set(movevectorx,0);"/>
<plugin name="right" url="img/rechts.png" autopos="bottom,-180,0" ondown="set(movevectorx,+1);" onup="set(movevectorx,0);"/>
<plugin name="up" url="img/hoch.png" autopos="bottom,-160,0" ondown="set(movevectory,-1);" onup="set(movevectory,0);"/>
<plugin name="down" url="img/runter.png" autopos="bottom,-140,0" ondown="set(movevectory,+1);" onup="set(movevectory,0);"/>
<plugin name="in" url="img/zoom_in.png" autopos="bottom,-120,0" ondown="set(movevectorz,-1);" onup="set(movevectorz,0);"/>
<plugin name="out" url="img/zoom_out.png" autopos="bottom,-100,0" ondown="set(movevectorz,+1);" onup="set(movevectorz,0);"/>
Danke im voraus