You are not logged in.

1

Thursday, June 13th 2013, 10:18am

Virtual tours with a custom map and radars

Hi there!

I am rather new here. Tourweaver's unreliability and features not working as promised made me switch to Krpano.

I am trying to make a classical tour with a .png map and a radar for every panorama.
I managed to insert a map as a layer in "Skin layout" part of vtourskin.xml. I added the radar code after it:

<layer name="map" type="image" url="NMS_tloris_200.png" align="topleft" edge="topleft" effect="dropshadow(1,45,0x000000,4,1" zorder="10" width="" height="" x="7" y="65" enabled="false" />

<plugin name="radar"
url="radar.swf"
alturl="radar.js"
parent="map"
align="lefttop"
edge="center"
x="107" y="146"
scale="0.5"
heading="88.31"
headingoffset="90.0"
fillcolor="0x3F3F3F"
fillalpha="0.5"
editmode="true"
/>


I also managed to syncronise the radar with one of the panoramas, but it now works with both.

I also tried to put radar code into tour.xml, after the hotspots, but it made no difference:

<scene name="scene_Vhodna_dvorana" title="Vhodna dvorana" onstart="" thumburl="panos/Vhodna_dvorana.tiles/thumb.jpg" lat="" lng="" heading="">

<view hlookat="180.405" vlookat="1.974" fovtype="MFOV" fov="120.000" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

<preview url="panos/Vhodna_dvorana.tiles/preview.jpg" />

<image type="CUBE" multires="true" tilesize="512" progressive="false">
<level tiledimagewidth="2020" tiledimageheight="2020">
<cube url="panos/Vhodna_dvorana.tiles/l3_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="1024" tiledimageheight="1024">
<cube url="panos/Vhodna_dvorana.tiles/l2_%s_%v_%h.jpg" />
</level>
<level tiledimagewidth="512" tiledimageheight="512">
<cube url="panos/Vhodna_dvorana.tiles/l1_%s_%v_%h.jpg" />
</level>
<mobile>
<cube url="panos/Vhodna_dvorana.tiles/mobile_%s.jpg" />
</mobile>
</image>

<!-- place your scene hotspots here -->
<hotspot name="spot1" style="skin_hotspotstyle" ath="0.536" atv="-11.827" linkedscene="scene_stopnisce" />

<plugin name="radar"
url="radar.swf"
alturl="radar.js"
parent="map"
align="lefttop"
edge="center"
x="107" y="200"
scale="0.5"
heading="88.31"
headingoffset="90.0"
fillcolor="0x3F3F3F"
fillalpha="0.5"
editmode="true"
/>

</scene>

How can I set a different radar for every panorama?
I'll be grateful!

Cheers!

Janez

2

Tuesday, June 18th 2013, 8:48am

Hi,

please see the 'scenes-with-imagemap' and 'scenes-with-imagemap-2' examples: (included in the viewer download package).
http://krpano.com/examples/116/examples/…h-imagemap.html
http://krpano.com/examples/116/examples/…imagemap-2.html

Best regards,
Klaus

3

Monday, July 22nd 2013, 7:14pm

Thank you very much, Klaus!

I'll try to adapt it to my tour!

Best regards!

Janez