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
});
Question
After successfully loading all components, including the treepanel named 'tree', the GMapPanel for the map is not displaying the Google map. Can anyone provide assistance to troubleshoot and resolve this issue? Thank you, as I am currently unable to determine the cause.
UPDATE Here is a screenshot I captured showcasing that the page should load the Google map, but it is currently blank.