[TIMOB-11663] Android: Map: Mapview in more than one tab of a tabgroup crashes application
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-11-05T23:48:50.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | n/a |
Components | Android |
Labels | qe-and100112 |
Reporter | Satyam Sekhri |
Assignee | Ingo Muschenetz |
Created | 2012-11-05T10:24:42.000+0000 |
Updated | 2017-03-20T20:46:29.000+0000 |
Description
An application with tabgroup which has more than one tab with a mapview, crashes when the second tab with mapview is opened
This is not a regression. The issue occurs as atleast as far as 2.1.1
Steps to Reproduce:
1. Create an application with code below and launch the application
2. Click on Tab2
Actual Result:
After Step1: Application opens up with mapview shown in tab1
After step2: Application crashes. (refer to the attached error logs)
Expected Result: After Step 2, the application should not crash and tab2 with mapview should be shown
var tabGroup = Titanium.UI.createTabGroup();
var _window = Ti.UI.createWindow();
_window.title='Tab 1';
_window.backgroundColor='#fff';
var tab1 = Titanium.UI.createTab({
icon:'KS_nav_views.png',
title:'Tab 1',
window:_window
});
var regionSV = {latitude:37.337681,longitude:-122.038193,latitudeDelta:0.04, longitudeDelta:0.04};
var mapview = Titanium.Map.createView({
mapType: Titanium.Map.STANDARD_TYPE,
animate:true,
region: regionSV,
regionFit:true,
userLocation:true,
visible: true,
});
_window.add(mapview);
var win2 = Titanium.UI.createWindow({
title:'Tab 2',
backgroundColor:'#fff'
});
var tab2 = Titanium.UI.createTab({
icon:'KS_nav_ui.png',
title:'Tab 2',
window:win2
});
var regionSV2 = {latitude:37.337681,longitude:-122.038193,latitudeDelta:0.04, longitudeDelta:0.04};
var mapview2 = Titanium.Map.createView({
mapType: Titanium.Map.STANDARD_TYPE,
animate:true,
region: regionSV2,
regionFit:true,
userLocation:true,
visible: true,
});
win2.add(mapview2);
tabGroup.addTab(tab1);
tabGroup.addTab(tab2);
tabGroup.open();
Attachments
File | Date | Size |
---|---|---|
log.txt | 2012-11-05T10:24:43.000+0000 | 6189 |
Evidently can only have one MapView per application
Log file indicates that Android only supports on MapView at a time. It is suggested that this is information enough.
Closing ticket as invalid.