Ext.Loader.setPath('Ext.ux', '../ux');
Ext.require([
'Ext.tree.*',
'Ext.data.*',
'Ext.window.MessageBox',
'Ext.window.*',
'Ext.ux.GMapPanel'
]);
var map = new Ext.ux.GMapPanel({
xtype: 'gmappanel',
region: 'center',
id: 'mygooglemap',
zoomLevel: 3,
gmapType: 'map',
setCenter: {
'lat': 37.4419,
'lng': -122.1419
}
});
var layout = Ext.create('Ext.panel.Panel', {
//renderTo: 'layout',
width: window.innerWidth,
height: window.innerHeight,
//title: 'Border Layout', //no title will be blank
layout: 'border',
items: [{
title: 'Message List',
region: 'south', // position for region
xtype: 'panel',
height: 100,
split: true, // enable resizing
collapsible: true,
margins: '0 5 5 5',
collapsed: true
},tree,map],
renderTo: Ext.getBody() //get the body and display Layout at there
});
質問
すべてのロードが成功しました。tree という名前のツリーパネルも正常にロードされました。地図だけ GMapPanel で Google マップを表示できません。なぜですか?助けてください。ありがとうございます。何も思いつきません
これを私が撮ったスクリーンショットを更新してください。ページはGoogleマップをロードするはずですが、空白です