dbottillo
28 Sep 2010, 2:12 AM
I have a problem with map
if i try:
Ext.setup({
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
icon: 'icon.png',
glossOnIcon: false,
onReady: function() {
var myMaps = new Ext.Map({
getLocation: true
});
var first = new Ext.Panel({
html: 'first'
});
var pnl = new Ext.TabPanel({
fullscreen: true,
items: [myMaps]
});
}
});
i see the map centered in my browser location
but if i try:
Ext.setup({
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
icon: 'icon.png',
glossOnIcon: false,
onReady: function() {
var myMaps = new Ext.Map({
getLocation: true
});
var first = new Ext.Panel({
html: 'first'
});
var pnl = new Ext.TabPanel({
fullscreen: true,
items: [first,myMaps]
});
}
});
in the beginning i see first, then if i switch to the second card i see a map
but it's not centered in my browser location, even if getLocation is set to true
why map have this behavior?
Daniele
if i try:
Ext.setup({
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
icon: 'icon.png',
glossOnIcon: false,
onReady: function() {
var myMaps = new Ext.Map({
getLocation: true
});
var first = new Ext.Panel({
html: 'first'
});
var pnl = new Ext.TabPanel({
fullscreen: true,
items: [myMaps]
});
}
});
i see the map centered in my browser location
but if i try:
Ext.setup({
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
icon: 'icon.png',
glossOnIcon: false,
onReady: function() {
var myMaps = new Ext.Map({
getLocation: true
});
var first = new Ext.Panel({
html: 'first'
});
var pnl = new Ext.TabPanel({
fullscreen: true,
items: [first,myMaps]
});
}
});
in the beginning i see first, then if i switch to the second card i see a map
but it's not centered in my browser location, even if getLocation is set to true
why map have this behavior?
Daniele