Parent - Child with the new type="container" *SOLVED*

  • Hi,

    I'm having some trouble with a thing that I thought it would be really simple after the release of the latest version of KRPano (krpano 1.0.8.15).

    What I'm trying to create is this:

    I have a layer/plugin with an image:

    Code
    <layer name="map" keep="true" url="img/fp_1st.png" align="centertop" edge="top" />

    Then I've created an empty container layer/plugin and assigned it as child of the first layer:

    Code
    <layer name="container" keep="true" type="container" parent="map" />

    This should create an empty container right?

    Then I've assigned a child of this container like this:

    Code
    <layer name="child1" keep="true" url="common/mappoint.png" parent="container" align="center" />

    Now I should be able to hide the container layer/plugin and have the child1 layer/plugin hidden right? The problem is that child1 is not even visible in the first place.

    Am I doing something wrong here?

    ––––•(-• zyON •-)•––––

    Edited once, last by zyON: Ok, just found out what I was missing. The container layer needs width and height attributes to work: <layer name="container" keep="true" type="container" width="100%" height="40" parent="map" /> (December 19, 2012 at 1:21 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!