when i used the sencha touch2.2.1,i met a question. In the viewer:
items: [{
id: 'mapCanvas',
xtype:'map',
useCurrentLocation: true,
}]
In the controller:
var map= Ext.getCmp('mapCanvas');
console.dir(map);
var marker= new google.maps.Marker({
position: new google.maps.LatLng(25,118),
});
marker.setMap(map);
report the error:
Uncaught InvalidValueError: setMap: not an instance of Map, and not an instance of StreetViewPanorama
I can see the map,but i can't see the marker, and how to solve the problem?
var map is a HTML element you need an instance of the google.maps.Map Object
then....