1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    143
    Vote Rating
    0
    rockinthesixstring is on a distinguished road

      0  

    Default How to nest a map inside a div tag?

    How to nest a map inside a div tag?


    I can only seem to find tutorials on how to get a map to fill a panel.

    My home screen is setup to have a map nested inside a div tag, I'm wondering how I might be able to accomplish this?

    this is just a raw concept of what I'm looking for.

    Code:
    <tpl for".">
        <div id="home-banner">{html}</div>
        <div id="map-container">***MY MAP GOES HERE***</div>
        <div class="right">contact us</div><div class="left">about us</div>
    </tpl>

  2. #2
    Sencha User
    Join Date
    Jun 2011
    Posts
    350
    Vote Rating
    1
    bharatn is on a distinguished road

      0  

    Default


    Does this help?

    Code:
    Ext.setup({
        onReady: function(){
            var mainPanel = new Ext.Panel({
                fullscreen: true,
                id: 'mainPanel',
                items: [new Ext.Panel({
                    html: '<div id="home-banner">test</div>'
                }), new Ext.Map({
                    id: 'map-container',
                    useCurrentLocation: true,
                    width: 500,
                    height: 500
                
                }), new Ext.Panel({
                    html: '<div class="left">about us</div>'
                })]
            });
            
            
            
        }
    });

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar