Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4449] Mapview Region ignored when mapview placed in tabgroup

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-11-18T10:30:27.000+0000
Affected Version/sRelease 1.7.0, Release 1.8.0
Fix Version/sSprint 2011-29, Release 1.8.0
ComponentsiOS
Labelsmodule_map, qe-testadded, regression
ReporterAlan Leard
AssigneeSabil Rahim
Created2011-06-16T14:29:28.000+0000
Updated2011-11-18T10:30:27.000+0000

Description

A mapview placed on a tab in a tabgroup ignores region. Here is simple testing code:

var tabGroup = Titanium.UI.createTabGroup();

var win2 = Titanium.UI.createWindow({  
    title:'Map',
    navBarHidden:true
});

var tab2 = Titanium.UI.createTab({  
    icon:'KS_nav_ui.png',
    title:'Map',
    window:win2
});


var mapview = Titanium.Map.createView({
	mapType: Titanium.Map.STANDARD_TYPE,
    regionFit:true,
    region:{latitude:40.581691,longitude:-122.3916,latitudeDelta:2, longitudeDelta:2}
});
win2.add(mapview);

tabGroup.addTab(tab2);     

tabGroup.open();
Place the mapview directly in a window (no tab), and region will work. Also, running on 1.6.2 works fine.

Attachments

FileDateSize
app.js2011-06-17T11:33:42.000+0000732

Comments

  1. Opie Cyrus 2011-06-17

    test app. tab 1 opens with region focused near Redding, CA
  2. Alan Leard 2011-06-20

    Modified to an iOS Bug.
  3. Sabil Rahim 2011-07-21

    fixed. pending pull request.
  4. Alan Vaghti 2011-09-08

    Closing. Fix verified on iPad 2 4.3.5, iPhone 4 4.2.10, iPod 3rd generation 4.0.2.
  5. Natalie Huynh 2011-11-17

    Fail: Tested with 1.8.0.1.v20111116185058 on iPad 2 4.3.5 iPod Touch 4.02 iPhone 4s 5.0 Does not zoom into the region
  6. Natalie Huynh 2011-11-18

    Reference TIMOB-6232 for zoom issue

JSON Source