Skip to Content
avatar image
Former Member

how to fit sapui5 anlytical map to the panel (height and width)

i want to view entire world map inside my div element

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 12 at 10:49 AM

    Use below code:-

    xmlns="sap.m"

    xmlns:vbm="sap.ui.vbm"

    <Panel width="auto">
    <headerToolbar>
    <Toolbar height="3rem">
    <Title text="Panel"/>
    </Toolbar>
    </headerToolbar>
    <content>
    <vbm:AnalyticMap  xmlns:l="sap.ui.layout"  initialPosition="0;10;0"></vbm:AnalyticMap>
    </content>
    </Panel>
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      We need fit the complete map into 200* 300 pixels. Where initial position will bring map to set the position.