Dear visitor, welcome to krpano.com Forum.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
Parent plugin outside a bingmap in html5
Hi, I have a small problem trying to have a plugin (button) parent to a bingmap to slide the map onclick.
In flash the plugin is displayed but in html5 it looks nothing can be displayed outside the map even with maskchildren="false" ?
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<plugin name="map" keep="true"
url="%SWFPATH%/plugins/bingmaps.swf" alturl="%SWFPATH%/plugins/bingmaps.js"
align="right" width="40%" height="100%" x="40%"
>
spot...
</plugin>
<plugin name="bordermap"
devices="desktop"
keep="true"
url="%SWFPATH%/skin/icons/desktop_map.png"
align="left"
edge="right"
parent="plugin[map]"
onclickA="set(state,'A'); tween(plugin[map].x,0%);"
onclickB="set(state,'B'); tween(plugin[map].x,-40%);"
onclick="if(state == 'A', onclickB(), onclickA() );"
/>
|
Hi,
try using an additional surrounding container and put the map and buttons into and don't use the map plugin directly as parent.
E.g. use a layer structure like this:
|
Source code
|
1
2
3
4
|
<layer name="..." type="container" ...>
<layer name="map" ... zorder="1" ... />
<layer name="buttons" ... zorder="2" ... />
</layer>
|
Best regards,
Klaus