var layout = Ext.create('Ext.panel.Panel', {
//renderTo: 'layout',
width: 500,
height: 500,
//title: 'Border Layout', //no title will be blank
layout: 'border',
items: [{
xtype: 'gmappanel',
id : 'mygooglemap',
gmapType: 'map',
zoomLevel: 7,
mapConfOpts: ['enableScrollWheelZoom','enableDoubleClickZoom','enableDragging'],
mapControls: ['GSmallMapControl','GMapTypeControl','NonExistantControl'],
setCenter: {
lat: 3.951941,
lng: 102.052002,
}
}],
renderTo: Ext.getBody() //get the body and display Layout at there
});
我有renderto
Body 但仍然无法显示任何内容?
这是我的 jsfiddle http://jsfiddle.net/anthor/Y4jP4/的链接