on 08-26-2015 3:00 PM
Hi,
Currenlty, I need to display two different kind of UI elements on tile control.
I tried using custom tile as below.
<CustomTile xmlns="sap.m"
id="id"
removable="true"
press=""
frameType="TwoByOne" width="100%">
<tooltip></tooltip> <!-- sap.ui.core.TooltipBase -->
<dependents></dependents> <!-- sap.ui.core.Control, since 1.19 -->
<content>
<vbm:GeoMap id="vbi" width="50%" height="100%" NavigationControl="false" initialPosition="72.8258;18.9750;0" initialZoom="15" scaleVisible="false" render="render" zoom="zoom" submit="open" openWindow="open">
<vbm:vos>
<vbm:Spots spots="{/Spots}" >
<vbm:Spot position="{pos}" tooltip="{tooltip}" text="2" image="{pin}" />
</vbm:Spots>
<!-- <vbm:Spots spots="{/OtherSpots}" >
<vbm:Spot position="{pos}" tooltip="{tooltip}"/>
</vbm:Spots> -->
</vbm:vos>
</vbm:GeoMap>
<vbm:GeoMap id="vbi2" width="50%" height="100%" NavigationControl="false" initialPosition="72.8258;18.9750;0" initialZoom="15" scaleVisible="false" render="render" zoom="zoom" submit="open" openWindow="open">
<vbm:vos>
<vbm:Spots spots="{/Spots}" >
<vbm:Spot position="{pos}" tooltip="{tooltip}" text="2" image="{pin}" />
</vbm:Spots>
<!-- <vbm:Spots spots="{/OtherSpots}" >
<vbm:Spot position="{pos}" tooltip="{tooltip}"/>
</vbm:Spots> -->
</vbm:vos>
</vbm:GeoMap>
</content>
<!-- sap.ui.core.Control -->
</CustomTile>
I tried putting 2 geomap control on custom tile, but second map is getting displayed on top of first map.
Because of which I am not able to see the first map.
So please let me know, Is it possible to put more than one control on custom tile in horizontal layout or vertical layout.
Regards,
Chandru.
did you try to put them in HBox
like
<HBox>
<content>
<vbm:GeoMap id="vbi" ...
<vbm:GeoMap id="vbi2"....
</content>
</HBox>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chandru,
When you're wrapping two GeoMaps in a HBox, you have to use width and height in form of "px".
Check the working sample with two GeoMaps in Custom Tile using HBox - Plunker - GeoMap
Regards,
Sai Vellanki.
Hi Chandru,
Yes you can add multiple UI elements in Custom Tile. But, make sure that you're increasing the width and height of custom tile. Since, the default width is 8.5em and height is 10em.
Check this sample, where I used multiple UI elements in custom tile - Plunker - CustomTile
Regards,
Sai Vellanki.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Chandru,
are you able to add css to the xml containers.. perhaps some padding between the two geo map containers.. or some margin. this will definitely allow you to have them next to each other...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.