Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6232] iOS: Mapview: Parity: Mapview Region is not zoomed in to the region location

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-07T20:45:42.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sn/a
ComponentsiOS
Labelstbs-1.9.0
ReporterNatalie Huynh
AssigneeEric Merriman
Created2011-11-18T10:16:21.000+0000
Updated2017-06-07T20:45:42.000+0000

Description

Steps To Reproduce: 1. Compile the following 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();
2. Click on tab 2 Actual Result: The mapview does not zoom into the region Expected Result: The mapview should zoom into the region Note: Compare with Android to see the region

Comments

  1. Leonardo Amigoni 2011-12-17

    I have noticed this as well. My issue is when I put the map as a header of a tableview it won't zoom. My temporary fix is to put the map inside another view that is just a container. It should work for your issue too.
  2. Lee Morris 2017-06-07

    Closing ticket due to time passed and lack of progress in the past 5 years.

JSON Source