Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11899] Android: Map - The user location is not shown and the map is loaded partially

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-12-01T01:11:44.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.0.0, Release 3.1.0, 2012 Sprint 24, 2012 Sprint 24 API
ComponentsAndroid
Labelsmodule_map, qe-and100112, qe-testadded, regression
ReporterTamila Smolich
AssigneeHieu Pham
Created2012-11-29T22:27:38.000+0000
Updated2012-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

Comments

  1. Vishal Duggal 2012-12-01

    https://github.com/appcelerator/titanium_mobile/pull/3507
  2. Vishal Duggal 2012-12-01

    https://github.com/appcelerator/titanium_mobile/pull/3512 backport to 3_0_X
  3. Tamila Smolich 2012-12-04

    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)

JSON Source