You are not logged in.

zyON

Trainee

  • "zyON" started this thread

Posts: 70

Location: Lisboa, Portugal

  • Send private message

1

Wednesday, December 19th 2012, 1:08pm

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:

Source code

1
<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:

Source code

1
<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:

Source code

1
<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 •-)•––––

This post has been edited 1 times, last edit by "zyON" (Dec 19th 2012, 1:21pm) with the following reason: 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" />