when i used the sencha touch2.2.1,i met a question. In the viewer:
items: [{ id: \'mapCanvas\', xtype:\'map\', useCurrentLocation: true, }]
map is not an instance of google map .
map
var map= Ext.getCmp('mapCanvas').getMap(); // add getMap() here to get the map instance console.dir(map); var marker= new google.maps.Marker({ position: new google.maps.LatLng(25,118), }); marker.setMap(map);