Sencha touch 2 如何在sencha touch 2中集成视图中的地图

Sencha touch 2 如何在sencha touch 2中集成视图中的地图,sencha-touch-2,Sencha Touch 2,我在该视图中集成地图时遇到问题: Ext.define('Sample.view.MainMenu', { extend: 'Ext.tab.Panel', requires: ['Ext.TitleBar','Ext.Video'], alias: 'widget.mainmenuview', config: { tabBarPosition: 'bottom', items: [ {

我在该视图中集成地图时遇到问题:

Ext.define('Sample.view.MainMenu', {
    extend: 'Ext.tab.Panel',
    requires: ['Ext.TitleBar','Ext.Video'],
    alias: 'widget.mainmenuview',
    config: {
        tabBarPosition: 'bottom',

        items: [
            {


                title: 'Welcome',
                iconCls: 'home',

                styleHtmlContent: true,
                scrollable: true,

                items: {
                    docked: 'top',
                    xtype: 'titlebar',
                    title: 'Welcome to sencha' ,items: [
                {
                    xtype: 'button',
                    text: 'Log Off',
                    itemId: 'logOffButton',
                    align: 'right'
                }
            ]
                },

                html: [
                    "Hello to dawini plateforme"
                ].join("")
            },




            {
                title: 'Get Started',
                iconCls: 'action',

                items: [
                    {
                        docked: 'top',
                        xtype: 'titlebar',
                        title: 'Getting Started'
                    },
                    {
                        xtype: 'video',
                        url: 'http://av.vimeo.com/64284/137/87347327.mp4?token=1330978144_f9b698fea38cd408d52a2393240c896c',
                        posterUrl: 'http://b.vimeocdn.com/ts/261/062/261062119_640.jpg'
                    }
                       ]
            }
        ], listeners: [{
            delegate: '#logOffButton',
            event: 'tap',
            fn: 'onLogOffButtonTap'
        }]
    },onLogOffButtonTap: function () {
        this.fireEvent('onSignOffCommand');
    }
});

有人能帮我在这个视图中集成map吗?我非常想你。

我是SIMpalm(www.SIMpalm.com)的开发人员,我想你应该在项目中的Sencha组件中尝试map type。还可以配置其他属性,如高度、当前位置等,还需要在Index.html页面中配置google map api,如

示例:项目:[ { xtype:'map', 身高:200, useCurrentLocation:true } ]

您可以找到如何在Sencha Touch中包含地图。虽然它关注的是infobubble,但它也展示了地图集成。如果您在执行此操作时遇到任何困难,请告诉我