Hi Klaus,
we're using 'lookto, loadpano, + js call to change window.location' to navigate around panoramas. On random occasions, the loadpano is interrupted, and the js call changing the location is never triggered. This is happening in chrome version 19.0.1084.56, all platforms (mac, windows, linux), flash 11.2 r202 and chrome 21.0.1171.0 dev, flash 11.3 r31 on linux (other platforms not tested). Tests on Firefox 13 (linux), with 11.2 r202 flash consistently load the pano and change the location.
We tried to remove the lookto() call (marked in the code below) and this seems to fix the issue as well as adding a wait(1) directly after it - suggesting it might be some kind of race condition. Varying toV, toH and FOV parameters of lookto(), or dropping the motion type param does not have any effect. Enabling debugging of krpano does not reveal any errors.
Steps to reproduce (a few retries / refreshes of the page might need to be done, as the issue is not always triggered)
1. open http://www.360cities.net/image/golestan-2-tehran
2. click on the arrow 'Golestan Palace - Tehran - Iran (32m)' on the right side (the issue seems to be triggered more often when all the pano tiles are not yet fully loaded).
3. the transition with lookto() starts, but no other action should happen after zooming towards the hotspot.
Is this a known issue? I've searched the forum, but found no similar topics, so any help would be appreciated. Our xml generated for this action + hotspot and the interrupted request + sshot from network tab are below.
Thanks
Balazs
Request URL:http://www.360cities.net/image/golestan-palace-tehran
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer:http://www.360cities.net/image/golestan-2-tehran
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1171.0 Safari/537.1
<hotspot keep="false" name="hs_2" hid="hotspot_id_33692" zorder="0" width="71" height="67" alpha="0.8" ath="34.5" atv="15" url="%SWFPATH%/images/icons/arrow3.png" scale="0.5"
onhover="showtext(Golestan Palace - Tehran - Iran (32 m),tooltip_bottom);"
onover="action(expand_31229_2);"
onout="action(contract_31229_2);"
onclick="action(load_31229_2);"
>
</hotspot>
<action name="expand_31229_2">
tween(hotspot[hs_2].scale,1.0,0.2);
tween(hotspot[hs_2].alpha,1.0,0.2);
</action>
<action name="contract_31229_2">
tween(hotspot[hs_2].scale,0.5,0.2);
tween(hotspot[hs_2].alpha,0.8,0.2);
</action>
<action name="load_31229_2">
action(hide_title);
action(hide_thumbs);
action(contract_31229_2);
lookto(34.5,0.0,15,smooth(90,90,90)); <!-- removing this or adding wait(1) below seems to resolve the issue -->
ifNot(fullscreen,
js(update_image(golestan-palace-tehran,35.6804026648344,51.4208006858826,Golestan%%20Palace%%20-%%20Tehran%%20-%%20Iran, mark-schuster, , tehran-iran, , 33692, 14%%3A29%%2C%%20Sunday%%2C%%2026%%2F10%%2F200
);
if(fullscreen,
switch(plugin[map].radar.visible);
loadpano(golestan-palace-tehran.xml,null,MERGE|KEEPVIEW,BLEND(1));
action(hide_embed);
plugin[embedOverlay].updatehandle(golestan-palace-tehran, Golestan%%20Palace%%20-%%20Tehran%%20-%%20Iran, tehran-iran, , 35.6804026648344, 51.4208006858826);
lookat(-246.552832178027,0.0,15);
wait(blend);
delayedcall(0,
action(reset_map_33692);
switch(plugin[map].radar.visible);
lookto(336.8,0.0,76.0,smooth(90,90,90));
action(load_thumbnails_33692);
action(show_plugins);
);
);
</action>
Display More