Sie sind nicht angemeldet.

1

Mittwoch, 11. Februar 2015, 00:24

Is there a way to switch off automatic url correction from krpano?

Hi.

Is there such way from subject?

I load xml by loadpano('http://localhost/ajax/pano.xml') function with below content:

<krpano>
<image type="CUBE" multires="true" tilesize="512" progressive="true">
...
<level tiledimagewidth="512" tiledimageheight="512">
<cube url="%$sv.tilespath%/panoname/l1_%s_%v_%h.jpg" />
</level>
...
</image>
</krpano>

Variable sv.tilespath="http://someaddress.com"

After automatic correction url address becomes "http://localhost/ajax/http://someaddress.com/panoname/l1_1_1_1.jpg"

But I dont need "http://localhost/ajax/" prefix in result url.



Thanks in advance

2

Freitag, 13. Februar 2015, 09:39

And "http://someaddress.com/panoname/l1_1_1_1.jpg" is not a relative URL. Why is it supposed to be a relative to "http://localhost/ajax"?

3

Freitag, 20. Februar 2015, 11:05

Hi,

the 'url' attribute is a special one - it will be modified during xml loading.

When the value of the url attribute in the xml is a relative one, then the relative path of the xml will be added.

See here:
http://krpano.com/docu/xml/#url-notes

The resolving of the %$var% happens later on the loading request, but at this point the path was already added.

I will consider adding a special handling for the next releases here - when the value of $var will be an absolute path, then the part before that variable will be stripped away.

Best regards,
Klaus

4

Dienstag, 24. Februar 2015, 13:36

Thanks

5

Donnerstag, 5. März 2015, 19:47

Hi,

this works now in the new 1.18.3 version.

Best regards,
Klaus

6

Donnerstag, 2. April 2015, 15:04

Thanks, Klaus