[TIMOB-11899] Android: Map - The user location is not shown and the map is loaded partially
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-12-01T01:11:44.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.0.0, Release 3.1.0, 2012 Sprint 24, 2012 Sprint 24 API |
Components | Android |
Labels | module_map, qe-and100112, qe-testadded, regression |
Reporter | Tamila Smolich |
Assignee | Hieu Pham |
Created | 2012-11-29T22:27:38.000+0000 |
Updated | 2012-12-04T22:31:26.000+0000 |
Description
Description:
The user location is not shown and the map is loaded partially.
This is a regression, does not occur on 2.1.4.
Steps:
1. Run the following code:
var tabGroup = Titanium.UI.createTabGroup();
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff'
});
var tab1 = Titanium.UI.createTab({
icon:'KS_nav_views.png',
title:'Tab 1',
window:win1
});
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,
});
win1.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 label2 = Titanium.UI.createLabel({
color:'#999',
text:'I am Window 2',
font:{fontSize:20,fontFamily:'Helvetica Neue'},
textAlign:'center',
width:'auto'
});
win2.add(label2);
tabGroup.addTab(tab1);
tabGroup.addTab(tab2);
// open tab group
tabGroup.open();
2. Scroll to Appcelerator Headquarters location or pinch the map
Expected result:
Map should be loaded and user current location should be shown
Actual result:
The user location is not shown and the map is loaded partially
https://github.com/appcelerator/titanium_mobile/pull/3507
https://github.com/appcelerator/titanium_mobile/pull/3512 backport to 3_0_X
Closing as fixed. Tested on: Titanium Studio, build: 3.0.0.201211301903 Titanium SDK, builds: 3.0.0.v20121130200208; 3.1.0.v20121203181001 Devices: Motorola RAZR i XT890 (4.0.4)