Trevor.S
12 Aug 2010, 6:46 AM
Sencha Touch version tested:
0.93
only default ext-all.css
Platform tested against:
iOS 4
Android 2.1
Android 2.2
Description:
When a map is contained in a tab in a tabPanel, if it is in a position other than the first, the markers do not appear on the map
Test Case:
Map first in list, thus markers appear
Ext.setup({
icon: 'icon.png',
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
glossOnIcon: false,
fullscreen: true,
onReady: function() {
var position = new google.maps.LatLng(39.5, -98.35);
var gatech = new google.maps.LatLng(33.778463,-84.398881);
var mapdemo = new Ext.Map({
title: 'Map',
iconCls: 'user',
mapOptions: {
center: position,
zoom: 3,
},
listeners: {
single: true,
activate: function(){
var gatechmarker = new google.maps.Marker({
position: gatech,
map: mapdemo.map
});
}
},
});
var tabpanel = new Ext.TabPanel({
tabBar: {
dock: 'bottom',
layout: {
pack: 'center'
}
},
fullscreen: true,
ui: 'light',
defaults: {
scroll: 'vertical'
},
items: [mapdemo,
{
title: 'About',
html: '<h1>Testing</h1><p>Docking tabs to the bottom will automatically change their style. The tabs below are type="light", though the standard type is dark. Badges (like the 4 & Long title below) can be added by setting <code>badgeText</code> when creating a tab/card or by using <code>setBadge()</code> on the tab later.</p>',
iconCls: 'info',
cls: 'card1'
},
{
title: 'Favorites',
html: '<h1>Favorites Card</h1>',
iconCls: 'favorites',
cls: 'card2',
badgeText: '4'
}]
});
}
});
Map is second in list, so markers do not appear
Ext.setup({
icon: 'icon.png',
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
glossOnIcon: false,
fullscreen: true,
onReady: function() {
var position = new google.maps.LatLng(39.5, -98.35);
var gatech = new google.maps.LatLng(33.778463,-84.398881);
var mapdemo = new Ext.Map({
title: 'Map',
iconCls: 'user',
mapOptions: {
center: position,
zoom: 3,
},
listeners: {
single: true,
activate: function(){
var gatechmarker = new google.maps.Marker({
position: gatech,
map: mapdemo.map
});
}
},
});
var tabpanel = new Ext.TabPanel({
tabBar: {
dock: 'bottom',
layout: {
pack: 'center'
}
},
fullscreen: true,
ui: 'light',
defaults: {
scroll: 'vertical'
},
items: [
{
title: 'About',
html: '<h1>Testing</h1><p>Docking tabs to the bottom will automatically change their style. The tabs below are type="light", though the standard type is dark. Badges (like the 4 & Long title below) can be added by setting <code>badgeText</code> when creating a tab/card or by using <code>setBadge()</code> on the tab later.</p>',
iconCls: 'info',
cls: 'card1'
},
mapdemo,
{
title: 'Favorites',
html: '<h1>Favorites Card</h1>',
iconCls: 'favorites',
cls: 'card2',
badgeText: '4'
}]
});
}
});
0.93
only default ext-all.css
Platform tested against:
iOS 4
Android 2.1
Android 2.2
Description:
When a map is contained in a tab in a tabPanel, if it is in a position other than the first, the markers do not appear on the map
Test Case:
Map first in list, thus markers appear
Ext.setup({
icon: 'icon.png',
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
glossOnIcon: false,
fullscreen: true,
onReady: function() {
var position = new google.maps.LatLng(39.5, -98.35);
var gatech = new google.maps.LatLng(33.778463,-84.398881);
var mapdemo = new Ext.Map({
title: 'Map',
iconCls: 'user',
mapOptions: {
center: position,
zoom: 3,
},
listeners: {
single: true,
activate: function(){
var gatechmarker = new google.maps.Marker({
position: gatech,
map: mapdemo.map
});
}
},
});
var tabpanel = new Ext.TabPanel({
tabBar: {
dock: 'bottom',
layout: {
pack: 'center'
}
},
fullscreen: true,
ui: 'light',
defaults: {
scroll: 'vertical'
},
items: [mapdemo,
{
title: 'About',
html: '<h1>Testing</h1><p>Docking tabs to the bottom will automatically change their style. The tabs below are type="light", though the standard type is dark. Badges (like the 4 & Long title below) can be added by setting <code>badgeText</code> when creating a tab/card or by using <code>setBadge()</code> on the tab later.</p>',
iconCls: 'info',
cls: 'card1'
},
{
title: 'Favorites',
html: '<h1>Favorites Card</h1>',
iconCls: 'favorites',
cls: 'card2',
badgeText: '4'
}]
});
}
});
Map is second in list, so markers do not appear
Ext.setup({
icon: 'icon.png',
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
glossOnIcon: false,
fullscreen: true,
onReady: function() {
var position = new google.maps.LatLng(39.5, -98.35);
var gatech = new google.maps.LatLng(33.778463,-84.398881);
var mapdemo = new Ext.Map({
title: 'Map',
iconCls: 'user',
mapOptions: {
center: position,
zoom: 3,
},
listeners: {
single: true,
activate: function(){
var gatechmarker = new google.maps.Marker({
position: gatech,
map: mapdemo.map
});
}
},
});
var tabpanel = new Ext.TabPanel({
tabBar: {
dock: 'bottom',
layout: {
pack: 'center'
}
},
fullscreen: true,
ui: 'light',
defaults: {
scroll: 'vertical'
},
items: [
{
title: 'About',
html: '<h1>Testing</h1><p>Docking tabs to the bottom will automatically change their style. The tabs below are type="light", though the standard type is dark. Badges (like the 4 & Long title below) can be added by setting <code>badgeText</code> when creating a tab/card or by using <code>setBadge()</code> on the tab later.</p>',
iconCls: 'info',
cls: 'card1'
},
mapdemo,
{
title: 'Favorites',
html: '<h1>Favorites Card</h1>',
iconCls: 'favorites',
cls: 'card2',
badgeText: '4'
}]
});
}
});