Uncaught InvalidValueError: setMap: not an instance of Map

前端 未结 7 1154
萌比男神i
萌比男神i 2021-02-19 12:23

when i used the sencha touch2.2.1,i met a question. In the viewer:

items: [{
    id: \'mapCanvas\',
    xtype:\'map\',
    useCurrentLocation: true,
}]
         


        
7条回答
  •  余生分开走
    2021-02-19 12:51

    The marker.setMap method expects the argument to be a google.maps.Map object. This is not one of those:

    var map= Ext.getCmp('mapCanvas');
    

提交回复
热议问题