0
我已經寫了一個應用程序,顯示當前位置在地圖上。 問題是,它適用於Galaxy Tab 10.1,HTC Desire,Desire Z,Galaxy S 但是當我使用三星Galaxy Ace或模擬器與Android 2.3.3它不工作 - t顯示我只是灰色屏幕。Sencha Touch 2應用程序不顯示谷歌地圖上的三星Galaxy Ace
代碼:
Ext.define('MyApp.view.WhereAmI', {
extend: 'Ext.Container',
xtype: 'whereAmI',
config: {
layout: 'fit',
scrollable: true,
styleHtmlContent: true,
style: 'text-align: center; background-color:white;',
items:
[
{
xtype: 'toolbar',
docked: 'top',
title: 'Where am I?',
items: [
{
ui: 'back',
xtype: 'button',
id: 'back',
text: 'Back'
}
]
},
{
xtype: 'mapview'
}
]
}
});
的MapView:
Ext.define("MyApp.view.MapView", {
extend: "Ext.Map",
xtype: 'mapview',
config: {
useCurrentLocation: true,
mapOptions:{
zoom: 14,
},
listeners: {
maprender : function(comp, map){
new google.maps.Marker({
position: new google.maps.LatLng(this._geo.getLatitude(), this._geo.getLongitude()),
map: map
});
},
}
},
})
當然index.html中和:
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
是否有可能使它的工作?