You are not logged in.

1

Tuesday, January 14th 2020, 3:22am

path question.

hello


i have problem with path..








there is folder which d / a / 08 folder inside have layer.xml (designed) and img file.


should path be set (include) to use layer.xml and img file when krpano main.xml is set in the lowest "0009" folder?


in index.html

Source code

1
embedpano({... initvars:{mypath:"../../../../../../08/img/})



in tour.xml

Source code

1
<hotspot name="spot1" url="%$mypath%logo.png" />


best regard :-) *question*

This post has been edited 1 times, last edit by "jang2620" (Jan 14th 2020, 7:29am)


2

Tuesday, January 14th 2020, 9:01am

normally your paths/urls start from
- where your viewer is (tour.js)
- where your html is

then you use url="%VIEWER%/..." or url="%HTMLPATH%/..."

but there are also other options, check the docs

https://krpano.com/docu/xml/#url

3

Friday, January 17th 2020, 3:15am

thank you for reply

normally your paths/urls start from
- where your viewer is (tour.js)
- where your html is
here is directory path:


In number 08 folder :




in 0009 folder :




I actually want to use the designed layer.xml in 08 folder for all krpano files in "d" folder...


best regard: *thumbsup*
then you use url="%VIEWER%/..." or url="%HTMLPATH%/..."
but there are also other options, check the docs
https://krpano.com/docu/xml/#url