Sie sind nicht angemeldet.

1

Freitag, 28. Januar 2022, 20:56

Layer "Iframe" - Directly support iframes and html elements as layers inside krpano.

Hi,

How do I create a layer where it will be an iframe to load an html?


Quellcode

1
<layer name="html" type="iframe" align="center" width="800" height="600" x="0" y="0" Keep="true" onloaded="url('https://krpano.com/home/');" />



I appreciate the help

3

Sonntag, 30. Januar 2022, 13:09

I've tried several ways, but it's not clear to me how to include the URL.

Would it be possible to include the code of an iframe?

4

Sonntag, 30. Januar 2022, 14:24

Hi,

the iframeurl setting need to be used:
https://krpano.com/docu/xml/#layer.iframeurl

Here your example corrected:

Quellcode

1
2
3
4
5
6
<layer name="html"
       type="iframe"
       iframeurl="https://krpano.com/home/"
       align="center" width="800" height="600"
       keep="true"
       />


Best regards,
Klaus