2014-05-04 17 views
0

我有地圖在該視圖中集成了一個問題:如何看法地圖集成在煎茶觸摸2

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'); 
    } 
}); 

有人可以幫助我如何地圖在這個視圖整合,並認爲你非常多。

回答

0

我是SIMpalm(www.simpalm.com)的開發人員,我認爲您應該在項目中的Sencha組件中嘗試地圖類型。其他屬性也可以像高度,當前位置等配置,而且你還需要在你的Index.html頁面中配置google map api,比如。

舉例:項目:[{ 的xtype: '地圖', 高度:200, useCurrentLocation:真 } ]

0

Here你可以找到如何爲包括煎茶觸摸地圖。雖然它專注於infobubble,但它也顯示了地圖集成。讓我知道如果你有任何困難實現這一點。