Hello,
I got a Nadir image to work on desktop....
Does not show on iPad???
Do I need some different code?
Hello,
I got a Nadir image to work on desktop....
Does not show on iPad???
Do I need some different code?
What code are you using? This works for me.
<hotspot name="nadirlogo"
url="nadir.png"
preload="true" ath="0"
keep="true" atv="90" distorted="true"
scale="1" rotate="0.0"
/>
At least I know it works on the iPhone.
This is the start of my tour.xml, I added compass.xml in the skin directory
and it all works fine on desktop but fails to load in iPad??
<krpano version="1.0.8.15" title="Crescent Gage" onstart="startup();">
<include url="skin/vtourskin.xml" />
<include url="skin/compass.xml" />
<!-- set skin settings: bingmaps? gyro? -->
<skin_settings bingmaps="false" bingmaps_key="" bingmaps_zoombuttons="false"
gyro="true"
thumbsopened="true"
tooltips_thumbs="true" tooltips_hotspots="true" tooltips_mapspots="true"
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>
Here is the compass.xml
<krpano version="1.0.8.15">
<!-- events - update logo rotation with pano rotation -->
<events name="nadirlogo_automatic_rotation" keep="true"
onviewchange="copy(hotspot[nadirlogo].rotate, view.hlookat);"
/>
<!-- nadir logo (distored hotspot) -->
<hotspot name="nadirlogo" keep="true"
url="cglogo.png"
ath="0"
atv="90"
distorted="true"
keep="true"
scale="0.4"
rotate="0.0"
rotatewithview="true"
onclick=" "
/>
</krpano>
I just figured it out by looking at your code...
I had 2 keep="true" statements in the code -
Took one out - now it works!!!
Cool! If in doubt about code, viewing the XML with Firefox generally points directly to problems like that.
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!