isaacueca
22 Jun 2010, 8:03 AM
Hi guys,I'm trying to add a google map as a child of TabPanel item.
However the map once it renders covers the entire screen, including the tabs
This is the code that I'm using to call the map inside the tabpanel item, once I select the specific item:
title: 'map',
id: 'tab3',
listeners: {
activate: function(cmp) {
new Ext.Panel({
fullscreen: true,
items: [mapdemo],
})
}
}
And this is the code I'm using to create the map:
var position = new google.maps.LatLng(37.44885,-122.158592);
var mapdemo = new Ext.Map({
mapOptions: {
center: position,
disableDefaultUI: true,
zoom: 5,
},
maskMap: true,
});
Any help would be much appreciated it!
However the map once it renders covers the entire screen, including the tabs
This is the code that I'm using to call the map inside the tabpanel item, once I select the specific item:
title: 'map',
id: 'tab3',
listeners: {
activate: function(cmp) {
new Ext.Panel({
fullscreen: true,
items: [mapdemo],
})
}
}
And this is the code I'm using to create the map:
var position = new google.maps.LatLng(37.44885,-122.158592);
var mapdemo = new Ext.Map({
mapOptions: {
center: position,
disableDefaultUI: true,
zoom: 5,
},
maskMap: true,
});
Any help would be much appreciated it!