when i used the sencha touch2.2.1,i met a question. In the viewer:
items: [{
id: \'mapCanvas\',
xtype:\'map\',
useCurrentLocation: true,
}]
>
var map is a HTML element you need an instance of the google.maps.Map Object
var map = google.maps.Map(document.querySelector("#mapCanvas"),{
center: new google.maps.LatLng(24.027872, -104.655278),
zoom: 12
});
then....
var marker= new google.maps.Marker({
position: new google.maps.LatLng(25,118),
map: map
});