On 11 January 2013  07:34, Matt Priour wrote:
>Get rid of the second set of square brackets. Used naked by it self like
>that is guaranteed to get you odd results. Also the initial split
>separator is not needed.
>Matt Priour

Hi Matt, thank you for answering. I removed the extra square brackets
and the first split, please see the code below. The result is exactly
the same, apart from the absence of the first split.

Regards,

Luís

#######################################################

tbar: {
        height: 100,
        items:[
            {
                            iconCls: "pan",
                            map: WebGIS.map,
                            pressed: true,
                            toggleGroup: "tools",
                            allowDepress: false,
                            tooltip: "Navigate",
                            control: new OpenLayers.Control.Navigation()
            },{
                            iconCls: "print",
                            map: WebGIS.map,
                            toggleGroup: "tools",
                            allowDepress: false,
                            tooltip: "Print - still in development",
                            disabled: true
            },
            '-',
            '->',
            '-',
            {
               xtype:'splitbutton',
               text: 'Open Street Map',
               menu: [{
                   text: 'Open Street Map',
                   checked: true,
                   handler  : WebGIS.baseOSM,
                   group: 'baseLayer'
               },{
                   text: 'Google Satellite',
                   checked: false,
                   handler  : WebGIS.baseGoogleSat,
                   group: 'baseLayer'
               }]
        }]
    }
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to