1. #1
    Sencha User
    Join Date
    Jun 2009
    Posts
    399
    Vote Rating
    2
    parky128 is on a distinguished road

      0  

    Default Map with Toolbar

    Map with Toolbar


    I need to get a Toolbar docked on a Map panel, but I notice there is no items config item for me to add a toolbar object.

    I'm using MVC and so have my view defined like so:

    Code:
    Ext.define('PinpointersTouch.view.GMap', {
        extend: 'Ext.Map',
        xtype: 'gmap',
        config: {
            useCurrentLocation: false,
            fullscreen: true,
            id: 'mainMap'
    		// items: [{
    			// xtype: 'toolbar',
    			// docked: 'top',
    			// items: [{
    				// xtype: 'label',
    				// html: 'Show:',
    				// style: 'color:white;'
    			// },{
    				// xtype: 'selectfield',
    				// store: 'TrackingListWithShowAll',
    				// displayField: 'UnitName',
    				// valueField: 'id',
    				// itemId: 'selectVehicle'
    			// }]
    		// }]      
        }
    	
    });
    Just thinking, would I be best off actually using a panel with two child items, one being the Map and one the Toolbar? Seems like I'm over nesting then though??

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,795
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Ext.Map is a subclass (extends from) of Ext.Component. You have to be a subclass of Ext.Container in order to use docked components. Therefor you cannot have docked components in an Ext.Map. You will need to wrap your Ext.Map in an Ext.Container, use layout : 'fit' and add docked components both to the Ext.Container.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi